note 5742 modified in Strings by ronabop
| From: | ronabop@php.net | Date: | Sun, 10 Dec 2000 05:02:36 +0000 |
| Subject: | note 5742 modified in Strings by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8587@lists.php.net to get a copy of this message | ||
Anyone wanting to do something like:
$temp = 1;
echo "$tempst";
and get back:
1st
should take a look at http://www.php.net/manual/language.variables.variable.php
Ie:
echo "${temp}st";
Just like in perl/shell.
http://www.php.net/manual/ref.strings.php