i had two variables called $phone and $url where
$phone = '600180320';
$url = "[phone:1-3]&mid3=[phone:4-6]&last3=[phone:7-9]";
first3=[phone:1-3] means that the first to third character in $phone will be assign to query string 'first3', and so forth for mid3 and last3.
Can anyone tell me how to get the 'phone', '1' and '3' in [phone:1-3]?
thanks!
$phone = '600180320';
$url = "[phone:1-3]&mid3=[phone:4-6]&last3=[phone:7-9]";
first3=[phone:1-3] means that the first to third character in $phone will be assign to query string 'first3', and so forth for mid3 and last3.
Can anyone tell me how to get the 'phone', '1' and '3' in [phone:1-3]?
thanks!