php - Can i use two quotations with Array()? -


i translate website french, know if correct

$lang = array(  "tittle" => "c'est bien", "desc" => "bienvenue sur mon site", ); 

if use:

'tittle' => 'c'est bien', 

i error.

there nothing can't mix string delimiters convenient

$lang = array(     'tittle' => "c'est bien",     'desc' => 'bienvenue sur mon site', ); 

personally, use single quotes around simple strings, rather use double quotes in case rather escape. me seems more readable.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -