You are here: Re: [PHP] simple question « PHP « IT news, forums, messages
Re: [PHP] simple question

Posted by Jason Wong on 02/01/05 03:49

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация