Thanks!
it works for 99%!!!
My only small problem is that when I do this
I change the msn images into the msn images on my guestbook
so I have my array like this:
$prentjes=array('~(y)~i'=>'<img src=\"images/thumbs_up.gif\" alt=\"Thumbs up\">',
'~(n)~i'=>'<img src=\"images/thumbs_down.gif\" alt=\"Thumbs down\">',
'~(b)~i'=>'<img src=\"images/beer_yum.gif\" alt=\"Beer mug\">',
...........
some of these will have as output (*IMAGE
instead of just the IMAGE!
any ideas on how to correct this?
my first guess would have been that it takes the backslash as a part of the modifier, but I just read the manual, and found out it's not this...
EDIT
some time later, alot of pages of the php manual and some other tutorials, this newbie is getting nervous...
Isn't there a better way to do this?
hell:
'~(:))~i'=>'<img src=\"images/regular_smile.gif\" alt=\"Smiley\">',
that's the line for a regular smiley...
Isn't there a way to do something like this:
$smiley = "🙂";
'~$smiley~i'=>'<img src=\"images/regular_smile.gif\" alt=\"Smiley\">',*/
cose the other way is just making me crazy!