Re: [PHP] thnx..

2002-01-17 Thread Scott Houseman
Create the class like such: id = $newval; } // // Return the value of $id. // function getId ( ) { return $this->id; } } ?> To retrieve this variable in another php script do this then: x ( 5 ); print ( "Value of id is ".$news->getId() ); // This will p

[PHP] thnx..

2002-01-17 Thread Sandeep Murphy
Hi guys!! Thnx a bunch, it worked out... I used the split function... Meanwhile, hv another question !! I hv a var $id declared within a function x of a class called A I need to access this var $id in another php file... I do the following: A->$id); //print ($news->id); ?> How do i achieve