Jump to content

Francky683

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    francky683@hotmail.com

Profile Information

  • Gender
    Not Telling

Francky683's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Know what? I love you. Definately works. Luv ya bud. Francis B. <3
  2. Hey buds, I'm stuck on a problem with a preg_replace line, here it is : [code=php:0]<? $text = "[flag]usa[/flag]"; $flagSize = "18-12"; $flagArray['usa'] = 'United States'; $outputText = preg_replace("/\[flag\]([a-z]{3})\[\/flag\]/", "<img src=\"images/flags/$flagSize/$1.gif\" class=\"flag\" alt=\"$flagArray[$1]\">", $text); echo $outputText; ?>[/code] If somehow doesn't accept the array within the function, anyone? Best regards, Francis B.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.