Welcome Guest, Not a member yet? Register   Sign In
When it comes to echoing or setting do you prefer ' or "
#14

[eluser]Michael Wales[/eluser]
I use single quotes and concatenations unless I need a newline, tab character, or CI's routing.

Code:
$str = 'World';
$str2 = 'Hello ' . $str;
$str3 = $str2 . "\n";
$route['page/:any'] = "page/view/$1";


Messages In This Thread
When it comes to echoing or setting do you prefer ' or " - by El Forum - 01-23-2008, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB