I have the followig function:
function fill_store_specs($store_numbers) {
$temp_stores=array();
$stores=array();
if (@count($store_numbers) ) {
$sql_stores="";
# build a string for our sql query "IN" clause
for(reset($store_numbers);$key=key($store_numbers);next($store_numbers)) {
$sql_stores.="$key,";
}
# if we've data, remove the last comma
if (strlen($sql_stores)) {
$sql_stores=substr($sql_stores,0,-1);
}
# do database lookup
What I need is, if a user enters a store number like (#3613), I need to replace the # with either a null or 0. How can I do this?