manalnor Posted April 4, 2010 Share Posted April 4, 2010 Hello friends, can anyone rewrite it correct. $msg= '{$a[140][$lang]}'; as you can see we have php code $msg we i'd like to insert within it the following code {$a[140][$lang]} but it isn't working, i guess it is wrong to be written in that way. Link to comment https://forums.phpfreaks.com/topic/197536-php-inside-php-how/ Share on other sites More sharing options...
TeddyKiller Posted April 4, 2010 Share Posted April 4, 2010 $msg = "{$a[140][$lang]}"; This? You can use Variables within double quotes. Just not with single quotes. Link to comment https://forums.phpfreaks.com/topic/197536-php-inside-php-how/#findComment-1036723 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.