RE: [PHP] Function Reqest/Question

From: Date: Mon, 02 Jul 2001 19:32:39 +0000
Subject: RE: [PHP] Function Reqest/Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55889@lists.php.net to get a copy of this message
i dont know of a function to skip to the end of the nearest ?>, and i suspect that there isn't one... you can use other control func's to do what you need, in the context that you're working in... read up on: goto, break, continue, return > -----Original Message----- > From: Anil [mailto:ajangity@hotmail.com] > Subject: [PHP] Function Reqest/Question > > > Is there a func() that will let me break or skip to the END of the <? ?> > code > snippet? > > I have a file that contains both HTML and PHP. > > > > <html header code> > <? if condition "skip;" ... php code ... ?> > <html footer code> > > > I know there are several ways of attacking this. Including making a func() > that outputs the footer - skip() containing a bunch of print statements with > the footer html. ... > > > I was hoping for a straight forward solution built into php. I tried to use > return 0; but that didn't work it seems to stop loading the rest of the > page. > > > Thanks in advance. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#55889) next »