从某一字符串开始截取字符串

1.截取job字符串之后的字符

$jobid = substr('Submitted batch job 268',strripos('Submitted batch job 268',"job ")+4);

2.输出结果为:
‘268’

你可能感兴趣的:(php,常用函数,PHP,php)