Jump to content

[SOLVED] A quick preg_replace question


EvanAgee

Recommended Posts

hey all!

 

Here's what I've got:

 

$value = preg_replace('/#([A-Z])#/',$row[$1."_col"],$value);

 

So #A# would be replaced with the value of $row["A_col"]

 

However, this isn't working and ends up returning nothing. Does anyone have any tips that can help me solve this very frustrating problem?

Link to comment
https://forums.phpfreaks.com/topic/114325-solved-a-quick-preg_replace-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.