提取字符
<?php $str="$%654sdf();;454"; preg_match_all('/[0-9a-zA-Z]+/',$str,$match); print_r($match); ?>
提取数值
<?php $str="$%654sdf();;454"; preg_match_all('/[0-9]+/',$str,$match); print_r($match); ?>
提取字符
<?php $str="$%654sdf();;454"; preg_match_all('/[0-9a-zA-Z]+/',$str,$match); print_r($match); ?>
提取数值
<?php $str="$%654sdf();;454"; preg_match_all('/[0-9]+/',$str,$match); print_r($match); ?>