Re: function

From: Date: Fri, 04 May 2012 06:34:37 +0000
Subject: Re: function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-317771@lists.php.net to get a copy of this message
On Fri, May 4, 2012 at 4:29 AM, Dan Joseph <dmjoseph@gmail.com> wrote: > > Are these inside classes or anything?  If they're just functions, they > should work fine together, example of 2 working functions together: > > <?php > > hellotwo(); > > function helloone() > { >        echo "hi 1"; > } > > function hellotwo() > { >        helloone(); > } > > ?> > > This results in "hi 1" being echoed to the screen. > > -- > -Dan Joseph > > http://www.danjoseph.me Hi, Ron Another hint: Maybe the other function (you want to call inside your first function) is not defined at that time but in a file that's included later on ... Bye Simon

« previous php.general (#317771) next »