Hi,
I looked everywhere for a nice explanation of this darn simple thing,
but had no luck. I am working with some code made by a different person thats
why i am running into these sorts of things. (yes, i am kinda newbie)
I have a file named blah.php with this line:
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!
Thank you so much, it was really stupid of me, basic mistake. I solved
it differently, although your solution is miles away better than mine.
Heres what i did:
function supscript($texto)
{
global $supa;
$supa = sup.$texto./sup;
}
supscript(3);
print (2.$supa);
Hi guys,
I recently installed easy-php on my laptop so i could work on the
go without having to upload my scripts to the server to test them out. The
problem is that when i tried one of my scripts on it, i get some weird
errors, and the script works fine on the online server.
user. :-)
You can take a look at:
http://www.easyphp.org/
Pagongski
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo