I need to get all 'SD' characters from within a string I'm using php function strpos and then making a substr in the position found in the string, however I need to get all of them since the position is varied.
//trazendo a darkness do template no banco
$label = substr($qry['label_tpl_content'],7,5);
$labels = substr($qry['label_tpl_content'],15,5);
echo "<br>";
$pos = strpos($qry['label_tpl_content'],"SD");
echo $pos;
echo "<br>";
echo $label."<br>";
this variable comes more or less like this
XA ^ 35 ~ SD10N ^ T0 ~ SD13 for example is not always in the same position.