Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

belonging to remote server or localhost, hosting provider,
in php setup it exists a parameter to define the '' or "" use for string.

which one it is ?
and in which file of php can I fix it ?

thank you for your answers.

What I have tried:

lot of debug, and always the same messy effect
Posted
Updated 3-Oct-22 18:46pm

1 solution

Depends on what you are trying to do: PHP: Strings - Manual[^]
Basically, single quoted strings are that double quoted strings expand variable names and make special sequences work, and single quoted ones don't.
So this code:
PHP
echo "Hello World\n";
$var = 'Hello';
echo '$var world\n';
echo "$var world\n";
Prints this:
Hello World
$var world\nHello world
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900