function some_generic_function($myarray)
{
  foreach ($myarray as $k => $v) {
    if (is_string($k)) {
      /* some behaviour for associative array element */
    }
    else {
      /* some behaviour for indexed array element */
    }
  }
}

On Tue, 6 Mar 2001, Stanislav Malyshev wrote:

> DC>> So what about a string key that breaks when someone enters a
> DC>> string that can be autoconverted. Zend turns it into a number
> DC>> and hey presto nothing works any more. Can we have a construct
> DC>> to *force* it not to convert these things?
>
> I don't get what you are talking about. Can you give me an example
> (script)?
> --
> Stanislav Malyshev, Zend Products Engineer
> [EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115
>
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to