Source for file compat.php5xx.php
Documentation is available at compat.php5xx.php
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
* @link http://php.net/function.stripos
* @author Aidan Lister <aidan@php.net>
* @version $Revision: 1.13 $
* @require PHP 4.0.0 (user_error)
function stripos($haystack, $needle, $offset =
null)
user_error('stripos() expects parameter 1 to be string, ' .
gettype($haystack) .
' given', E_USER_WARNING);
user_error('stripos() needle is not a string or an integer.', E_USER_WARNING);
user_error('stripos() expects parameter 3 to be long, ' .
gettype($offset) .
' given', E_USER_WARNING);
// Manipulate the string if there is an offset
$haystack =
substr($haystack, $offset, strlen($haystack) -
$offset);
// Check there was a match
if (count($segments) ===
1) {
$position =
strlen($segments[0]) +
$fix;
Documentation generated on Mon, 05 May 2008 16:18:01 +0400 by phpDocumentor 1.4.0