Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
When it comes to echoing or setting do you prefer ' or "
Pages (2):
« Previous
1
2
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
When it comes to echoing or setting do you prefer ' or "
El Forum
Unregistered
#11
01-23-2008, 06:50 AM
[eluser]Craig A Rodway[/eluser]
It does. But I read somewhere that curly braces was quicker - I just can't find the site again that seemed to think it was.
El Forum
Unregistered
#12
01-23-2008, 06:56 AM
[eluser]wiredesignz[/eluser]
But if I take off my braces my pants will fall down.
El Forum
Unregistered
#13
01-23-2008, 06:58 AM
[eluser]Sarre[/eluser]
Combined with a too heavy pageload, you might not make it to the little room :ohh:
:-p
El Forum
Unregistered
#14
01-23-2008, 11:50 AM
[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";
Pages (2):
« Previous
1
2
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB