note 107100 added to function.include

From: Date: Sat, 07 Jan 2012 05:27:04 +0000
Subject: note 107100 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-185445@lists.php.net to get a copy of this message
test.php : //// simple example on how to pass variables to and from an include page <?php include("vars.php"); $gg=11; $hello = new SampleClass();//calls the class $hello->includepass($gg); // calls the function within the class $gg=$hello->gg; //calls the variable from vars.php echo "$gg"; ?> vars.php : <?php function passpass() { return 5; } class SampleClass { public function includepass($gg) { $tt = passpass();//calling above function $gg=$gg + $tt ; $this->gg=$gg;//pass back to test.php } } ?> ---- Server IP: 203.121.145.121 Probable Submitter: 58.8.26.47 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- https://master.php.net/note/edit/107100 Del: integrated -- https://master.php.net/note/delete/107100/integrated Del: useless -- https://master.php.net/note/delete/107100/useless Del: bad code -- https://master.php.net/note/delete/107100/bad+code Del: spam -- https://master.php.net/note/delete/107100/spam Del: non-english -- https://master.php.net/note/delete/107100/non-english Del: in docs -- https://master.php.net/note/delete/107100/in+docs Del: other reasons-- https://master.php.net/note/delete/107100 Reject -- https://master.php.net/note/reject/107100 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185445) next »