Re: simple question

From: Date: Tue, 01 Feb 2005 01:49:56 +0000
Subject: Re: simple question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207813@lists.php.net to get a copy of this message
On Tuesday 01 February 2005 09:41, Pagongski wrote: Please use a *descriptive* subject. > I have this function: > > function supscript($texto) > { > print("<sup>".$texto."</sup>"); > } > > But when i do: > > print "2".supscript("3"); > > I get the "3" before the "2", how is that posible? > > And: > > print(supscript("3")."2"); > > makes the 2 appear before the 3. > I am confused! You're trying to use the function supscript() as though it returned a value, it doesn't, it just prints something out directly. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ New Year Resolution: Ignore top posted posts

« previous php.general (#207813) next »