提取字元
<?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); ?>