numbers as strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



how do I set a number as a string
example

let us say
$a = 1;
$b = 2;
$c = 0;

I would like to be able to
$str = $c.$a.$b;

to result with
$str = 012;

is there something that I have missed or I guess the question should be what
did I miss

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux