问题 I'm trying to remove all non-numeric characters from a string. This is the string: $price = '₪1,180.00'; (the first character is the new israeli shekel currency symbol) I tried to use: $price_numeric_value = preg_replace( '/\D/', '', $price ); echo '<pre>';var_dump( $price_numeric_value );echo '</pre>'; $price_numeric_value = preg_replace( '~\D~', '', $price ); echo '<pre>';var_dump( $price_numeric_value );echo '</pre>'; $price_numeric_value = preg_replace( '/[^0-9.]/', '', $price ); echo '