CompatPhp5.php 474 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Add a few 4.3.0 functions to old versions of PHP
  4. *
  5. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  6. * @copyright (c) 2003 amfphp.org
  7. * @package flashservices
  8. * @subpackage io
  9. * @version $Id$
  10. */
  11. function patched_array_search($needle, $haystack, $strict = FALSE) //We only need strict actually
  12. {
  13. return array_search($needle, $haystack, $strict);
  14. }
  15. function microtime_float()
  16. {
  17. return microtime(true);
  18. }
  19. ?>