FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » what does mean this?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: what does mean this? [message #175334 is a reply to message #175333] Tue, 06 September 2011 20:54 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/6/2011 4:37 PM, rataplanbumbum wrote:
> In a script I have a statement:
>
> $cartID = $cart->cartID = $cart->generate_cart_id();
>
>
> can someone explain what does this mean?
>
> Thanks!

It calls the function generate_cart_id() in the object $cart.

It takes the results of that function and places it in the cardID member
of the object $cart.

It then takes the result and places it in the variable $cartID.

It is equivalent to:

$cart->cartID = $cart->generate_cart_id();
$cartID = $cart->cartID;
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php mbstring extension doesnt load
Next Topic: UTF-8 in MSSQL
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 23:55:09 GMT 2024

Total time taken to generate the page: 0.04930 seconds