I am writing some snippet script with PHP,
I have these kind of string variable
$msg="Dear [[5]]
We wish to continue the lesson with the [[6]]";
i need to grab 5 and 6 from this $msg and assign to an array ex array(5,6)
because those are the snippets numbers, any one know how to do that using PHP
thank you for help