+ 1
What is String? (php)
What is String? What can it do? Does string mean the number of alphabets in a sentence? example $string = "hello world" so output is 10?
6 Réponses
+ 3
String's a data type containing charsequences. It can store values as "abc" or "Hello World". It can contain also chars which are numbers, but, that's important, it contains them as Strings: "hello 10"
$string = "hello world"; does not output anything, cause you didn't print it out:
echo $string;
//output: hello world
+ 2
character you put inside "_" or '_' is called string. it can be any alphabet or number.
for example : print ("hello world") output is hello world
print ("10" + "4" ) output is 104
+ 1
\”
+ 1
Colby Welliver what you wanna say
0
i think i wrote wrong for echo i wrote $str instead of $string