<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-udiff-assoc"> <refnamediv> @@ -33,11 +33,11 @@ <![CDATA[ <?php class cr { - private $priv_member; - function cr($val) { + var $priv_member; + function cr($val) { $this->priv_member = $val; } - static function comp_func_cr($a, $b) { + function comp_func_cr($a, $b) { if ($a->priv_member === $b->priv_member) return 0; return ($a->priv_member > $b->priv_member)? 1:-1; }
Seems like you have reused your syntax highlighter script to check the syntax of examples, and corrected many errors. The above fix (and some other similar fixes) have not been neccessary however, since these functions will only be available with PHP 5 (AFAIK). So the examples are valid PHP 5 examples... Other corrections seem to be fine...
Goba