integer to string
| From: | Pushkar Pradhan | Date: | Fri, 14 Jun 2002 22:30:20 +0000 |
| Subject: | integer to string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102280@lists.php.net to get a copy of this message | ||
I generate nos. using range function, e.g. I get 0 to 40.
I want to convert these nos. to string, I tried sprintf()
syntax:
$soils[$i] = sprintf("%d", $soils[$i]);
But doesn't seem to work, my program returned an error.
P.S. : I'm using 4.0.6 otherwise wouldn't have this problem.
-Pushkar S. Pradhan