I have a bbcode named [ozcode][/ozcode]
I need to pass that info to the function OZCoding($input)
$code = "
Just Some Text
[ozcode]
new x = 32; //the x is 32
DrawText("Message 1 Here",x,y);
[/ozcode]
Even More Text
[ozcode]
new y = 64; //the y is 64
DrawText("Message 2 Here",x,y);
[/ozcode]
";
OZCode is a custom language. the function OZCoding will read the text and recolor the words that need recoloring. All I need is a way to have it recolor the area inside of the [ozcode] and [/ozcode]
$data1 = $code (Only from new x = 32 all the way to DrawText("Message 1 Here",x,y)😉
$data2 = $code (Only from new y = 64 all the way to DrawText("Message 2 Here",x,y)😉
OZCoding($data1);
OZCoding($data2);
function OZCoding($input)
{
//recolors the data
return $input;
}
So how do I just pass that info along?