[PHP] NEWBIE - How do you strip spaces?

2001-07-03 Thread Craig Simon

I am trying to figure out how to take a phone number as an array element,
and strip out the spaces and parenthesis and just return the numerals.  IE
(555) 555-1212 to 551212.
 
I would appreciate any assistance.
 
Thanks
Craig
 
 
Craig Simon   Senior Systems Engineer
Mobileum Inc.
4234 Hacienda Drive, Pleasanton Ca 94588
(O) 925-251-7269   (C) 925-487-6005
 



[PHP] Printing a string issue

2001-06-30 Thread Craig Simon








Greetings everyone. I have been lurking for a while now, and
now I am developing my first application with PHP. I am running into an issue that I would
love some help with.



I am writing an application to handle phonelists
and such. Now I am creating a
wireless version of the search page so that all the number links will be
automatically dialed when you click on them with your wap
phone. A link in WML would look
like this



wtai://wp/mc;1-555-555-1212



from html it
would look like this



pa href=wtai://wp/mc;1-555-555-1212"Asst/a/p



So I am trying to figure out how to write
this. I have a statement like this:



print
(pa href=\wtai://wp/mc;$row[officenum]\Office/a/p);



Although I can't get this to parse!



$row["officenum"]
is a variable that will have the number that I am calling. It is coming from a mysql
db. 



Any thoughts??



Thanks



Craig



Craig
Simon
Senior Systems Engineer

Mobileum Inc.

4234 Hacienda
  Drive, Pleasanton
Ca 94588

(O)
925-251-7269
(C) 925-487-6005