I'm interested in replace numeric matches in real time and manipulate them to hexadecimal.
I was wonder if it's possible without using foreach loop.
so iow...
every thing in between :
=
{numeric value} ;
will be manupulated to :
=
{hexadecimal numeric value} ;
preg_match_all('/\=[0-9]\;/',$src,$matches);
Is there any callback to preg_match_all so instead of preform a loop afterwards I can manipulate them as soon as preg_match_all catch every match (real time).
this is not correct syntax but just so you can get the idea :
preg_match_all_callback('/\=[0-9]\;/',$src,$matches,{convertAll[0-9]ToHexadecimal});