Welcome Guest, Not a member yet? Register   Sign In
help me to understand a topic from user guide
#1

[eluser]ranjitbd[/eluser]
Code:
http://ellislab.com/codeigniter/user-guide/general/styleguide.html#class_and_method_naming
// from this url

$str = str_replace(LD.'foo'.RD, 'bar', $str);

//what does it mean LD, RD
#2

[eluser]eoinmcg[/eluser]
Quote://what does it mean LD, RD

They're just user defined constants, which as the style guide assets should always be uppercase.
http://php.net/manual/en/language.constants.php

While it's not actually important what LD and RD mean in the scope of the example my guess is that they refer to what comes to the left and to the right of 'foo', respectively (ie. LeftData and RightData?).

Hope that helps!




Theme © iAndrew 2016 - Forum software by © MyBB