note 46358 deleted from language.operators.assignment by sean
| From: | sean@php.net | Date: | Fri, 08 Oct 2004 04:17:57 +0000 |
| Subject: | note 46358 deleted from language.operators.assignment by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78164@lists.php.net to get a copy of this message | ||
Note Submitter: shaolin at adf dot nu
----
Just a little function for adding chars/numbers to the beginning of a string (unlike .= that adds it
to the end).
<?php
function strToBeginning ($word,$var) {
$str = $word.$var;
return $str;
}
$v = "on you";
echo strToBeginning("hey ",$v);
?>
Nothing fancy or anything..