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

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -