Meaning /"...../" in php
Solved
cedric12
Posted messages
29
Status
Membre
-
nEm3sis Posted messages 722 Status Membre -
nEm3sis Posted messages 722 Status Membre -
Hello,
What is the purpose of /"name/" in PHP?
Thank you.
What is the purpose of /"name/" in PHP?
Thank you.
7 réponses
Hi,
It's a bit like in French; it's easier to respond in context...
So if you have a "sentence", in other words, a piece of code that's a bit longer, we can certainly help you better ;)
Talk soon
--
Signature strike...
It's a bit like in French; it's easier to respond in context...
So if you have a "sentence", in other words, a piece of code that's a bit longer, we can certainly help you better ;)
Talk soon
--
Signature strike...
I think you rather mean "...
well when you define a string and you want to include quotes in it, you can't do:
Because you would define your string as: "and he says: " and PHP would return an error because it wouldn't understand the rest...
So to include quotes, you have to declare your string like this:
Same for many special characters: to make a \ in a string, you have to put \\ (one to indicate that the following character is a special character).
There you go, you almost know everything!
--
The less intelligent the white is, the more the black seems stupid to him.
well when you define a string and you want to include quotes in it, you can't do:
$string = "and he says: "wood, this is...". end.";
Because you would define your string as: "and he says: " and PHP would return an error because it wouldn't understand the rest...
So to include quotes, you have to declare your string like this:
$string = "and he says: \"wood, this is...\". end.";This way, it does not take your quotes into account.
Same for many special characters: to make a \ in a string, you have to put \\ (one to indicate that the following character is a special character).
There you go, you almost know everything!
--
The less intelligent the white is, the more the black seems stupid to him.
So StreM was right, re-read his post, and you will see that it's exactly that.
--
Punvf cnf dhbv zrgger...
--
Punvf cnf dhbv zrgger...