NameSilo

How do . , \ affect php scripts ><

NamecheapNamecheap
Watch

Phat-Cat

Account Closed
Impact
1
Yea I keep reading in a lot of places to use . instead of , because it would be quicker. I don't understand why they make it take longer can anyone explain this to me?

I don't get it I don't understand why they would make it take longer.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
in what context of using these do you mean? using either in a string would not affect execution time at all.
 
0
•••
you can use "." in php to link different elements into a string:
PHP:
echo "Hia, ".$name.". Very nice to see you today on ".date("d/m/Y");

you can use "\" to escape characters in a string...
PHP:
$name = "phat cat";
echo "the variable \$name has a value $name";
the above script will output something like:
Code:
the variable $name has a value phat cat
the backslash has escaped the $ in the first occurance of the variable $name, and has output the $ as plain text! :D

and I don't have a clue what you are talking about commas! :D
 
0
•••
He doesn't even say what scripting language he's using. We need more info, Phat-Cat!
 
0
•••
Just forget about it I figured it out.
 
0
•••
mch said:
He doesn't even say what scripting language he's using. We need more info, Phat-Cat!


take a look at the title and you will see he did in fact say what language was being used.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back