Re: looping through text with array_key_exists function
- From: "Janwillem Borleffs" <jw@xxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 02:20:14 +0200
drako wrote:
Not exactly sure what could be going on here, and how to move
forwards.
$text = 'a b c';
print preg_replace('/([a-z0-9])/', '<img src="$1.jpg" />', $text);
Or if you also have images for uppercase letters:
print preg_replace('/([a-z0-9])/i', '<img src="$1.jpg" />', $text);
JW
.
- References:
- Prev by Date: Re: All Monday's & Thursdays
- Next by Date: need help with a new site
- Previous by thread: looping through text with array_key_exists function
- Next by thread: Re: looping through text with array_key_exists function
- Index(es):