Chaim Frenkel writes: > Somehow I find > if (40 == ($foo = substr($bar, index($bar, 'xyz')))) { > } I don't understand your hypothetical code. substr() returns the substring of $bar from the position retutned by index, onward. When would this be 40, if index is going to return the position of 'xyz'? I guess I can't understand your idea of safe failure until I see an example, and this doesn't seem to be it. Nat
- Re: RFC 213 (v1) rindex and index should return undef on... Tom Christiansen
- Re: RFC 213 (v1) rindex and index should return und... Nathan Wiger
- Re: RFC 213 (v1) rindex and index should return und... Chaim Frenkel
- Re: RFC 213 (v1) rindex and index should return... Nathan Torkington
- Re: RFC 213 (v1) rindex and index should re... Chaim Frenkel
- Re: RFC 213 (v1) rindex and index shoul... Nathan Torkington
- Re: RFC 213 (v1) rindex and index ... Nathan Torkington
- Re: RFC 213 (v1) rindex and in... Chaim Frenkel
- Re: RFC 213 (v1) rindex an... Glenn Linderman
- Re: RFC 213 (v1) rindex an... John Porter
- Re: RFC 213 (v1) rindex an... Glenn Linderman
- Re: RFC 213 (v1) rindex and index should return... John Porter
- Re: RFC 213 (v1) rindex and index should re... Glenn Linderman
- Re: RFC 213 (v1) rindex and index shoul... Chaim Frenkel
- Re: RFC 213 (v1) rindex and index ... Glenn Linderman
- Re: RFC 213 (v1) rindex and in... Chaim Frenkel