fatkulnurk
2/18/2019 - 4:43 AM

Parsing NIM

Parsing NIM

<?php
$data = "[15042353453,845322424242]";

$pattern = '/[^a-zA-Z0-9,]/';
$replacement = '';
$dataResult = preg_replace($pattern, $replacement, $data);


$dataResult = explode(',', $dataResult);


if(substr($dataResult[0],0,3) == 150)
{
  echo "<hr>hahahha<hr>";
}

print_r($dataResult);