Jump to content

fluteofliar

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fluteofliar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. $a has value but while accessing it like obj->$a ... it means we are trying to acess the property of object which is refer as $$a inside the object but the property $($a) is empty....well thankz mate for taking pain to reply my quest
  2. In php,AFAIK dollarsign($) is part of variable thatswhy we always variable using this sign........ Now,whats wrong when i use the above defination while accessing a member variable of a class using object, for instance <?php class hello { public $a="php seems sometime illogical"; function _construct() { echo "howz your php experience?"; } } $obj=new hello(); $obj->a;//this works fine $ob->$a;//error::can,t acess empty property? 2)does function are define at the point they call in php? why its necessary to call inner function first before outer function in nested function
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.