<?php $arr = ["TAX ID. 01.000.589.0.055.000 or", "TAX ID : 01.000.589.0.055.000 or", "TAX ID 01.000.589.0.055.000 or", "TAX: 01.000.589.0.055.000", "ARU RT 007/008 CAKUNG BARAT, CAKUNG, JAKARTA TIMUR 13910 INDONESIA TAX ID NO. 010005890055000"]; foreach($arr as $str){ echo preg_replace('/[^\d]/', '', substr($str, stripos($str, "tax"))) . "\n"; }
You have javascript disabled. You will not be able to edit any code.