Re: [PHP] array key starting with digit ending with string

2004-05-27 Thread Matt Matijevich
[snip] not sure I follow 100% but you could use a regular expression to detemine if it starts with a string. if (preg_match('/^\d/',$array_key)) { //do something } [/snip] I mean starts with a digit, sorry for 2 emails. I should proofread. -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] array key starting with digit ending with string

2004-05-27 Thread Matt Matijevich
[snip] if($data[$currentVarNameInCycle]) { do something } Is there some way force the recognition of the key when it leads with a digit? [/snip] not sure I follow 100% but you could use a regular expression to detemine if it starts with a string. if (preg_match('/^\d/',$array_key)) { //

[PHP] array key starting with digit ending with string

2004-05-27 Thread Larry Brown
I have an unusual situation where I have to communicate with an MS based soap server. They have named one of their variables with a name leading with a 1 such as 1variable. Nusoap loads the variable descriptions from the wsdl document and compares the variable names I am trying to send with the o