UNB Components Code Reference

UnbEnvironment::strdifferindex method

Find at what character index both strings differ first.

private static function UnbEnvironment::strdifferindex ($a, $b);

Parameters

a
b

Return value

(int) zero-based index of the first different character, or -1 if both strings are equal.

Remarks

Used in FindProjectRoot().

Member of class: UnbEnvironment

Implementation file: environment.class.php, line 307

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.