|
Posted by Jerry Stuckle on 08/18/06 11:48
mens libertina wrote:
> Jerry Stuckle wrote:
>
>>Yes, it can do what you want. The question is - are you getting any
>>matches? I'm far from an expert on regex's, but it looks like you
>>aren't getting any matches.
>>
>>If the code is as you indicate, you should, however. What happens if you
>>print $tagpart and $emesg?
>>
>>Also - do you get any output after the call to preg_replace_callback
>>(just to make sure there isn't a runtime error you aren't seeing)?
>
>
>
> Here's is my create_function output:
>
> Array ( [0] => {NAME} [1] => NAME ) Array ( [0] => {USERNAME} [1] =>
> USERNAME ) Array ( [0] => {EXPIRES} [1] => EXPIRES )
>
> Hello, !
>
> This is a courtesy reminder that your account, , is due to expire on .
>
> Please let us know if you need assistance or have questions.
>
> Thanks,
> Staff
>
OK, this is different. So the callback is being called now - just the
substitution isn't taking place.
I think you have a case problem here. You're trying to return
$info['USER'] from the function, but your $info array has $info['user'].
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|