Documentation is available at ext.php
- <?
- /* Finds the first empty "slot" in an array */
- function empty_slot ($arr)
- {
- $c=-1;
- foreach ($arr as $num => $val)
- {
- if (is_numeric($num)) ++$c;
- if (($num!=$c)) return $c;
- }
- return ++$c;
- }
- function class_conv($obj,$to)
- {
- $objname=get_class($obj);
- $temp=serialize($obj);
- $temp=ereg_replace('O:'.strlen($objname).':"'.$objname.'":',
- 'O:'.strlen($to ).':"'.$to .'":',$temp);
- return unserialize($temp);
- }
Documentation generated on Tue, 24 May 2005 03:57:48 -0400 by phpDocumentor 1.3.0RC3