34+ results for 'php stripos' (0 ms)
Not the results you expected?
select.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 564 lines
Multibyte.php (https://github.com/masihnewbie/cakephp.git) PHP · 1106 lines
6 * PHP 5
7 *
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
9 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
10 *
369 */
370 public static function stristr($haystack, $needle, $part = false) {
371 $php = (PHP_VERSION < 5.3);
373 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
709 */
710 public static function strstr($haystack, $needle, $part = false) {
711 $php = (PHP_VERSION < 5.3);
713 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
TextData.php (https://github.com/abgreeve/moodle.git) PHP · 676 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Calculation;
5 use DateTimeInterface;
6 use PhpOffice\PhpSpreadsheet\Shared\Date;
7 use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
8 use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
10 class TextData
240 }
242 $pos = mb_stripos($haystack, $needle, --$offset, 'UTF-8');
243 if ($pos !== false) {
244 return ++$pos;
multibyte.php (https://github.com/rynodivino/system.git) PHP · 820 lines
1 <?php
2 /*
3 * @package Habari
65 * Sets and returns the multibyte library being used internally
66 *
67 * @param $int The new library to use. One of the self::USE_* constants, null to simply return, or false to disable and use native non-multibyte-safe PHP methods.
68 *
69 * @return mixed If $new_library is null, returns the current library
279 /*
280 * function stripos
281 *
282 * Find position of first occurrence of string in a string. Case insensitive.
292 *
293 */
294 public static function stripos( $haysack, $needle, $offset = 0, $use_enc = null )
295 {
296 $enc = self::$hab_enc;
grapheme.php (https://gitlab.com/iranjith4/hhvm) PHP · 765 lines
1 <?php
3 /*
113 //=====================================================================================
114 $res_str .= "\n" . 'function grapheme_stripos($haystack, $needle, $offset = 0) {}' . "\n\n";
116 $tests = array(
157 $arg1 = urlencode($test[1]);
158 $arg0 = urlencode($test[0]);
159 $res_str .= "find \"$arg1\" in \"$arg0\" - grapheme_stripos";
160 if ( 3 == count( $test ) ) {
161 $result = grapheme_stripos($test[0], $test[1]);
163 else {
164 $res_str .= " from $test[2]";
165 $result = grapheme_stripos($test[0], $test[1], $test[2]);
166 }
167 $res_str .= " = ";
WebAssert.php (https://gitlab.com/reasonat/test8) PHP · 849 lines
1 <?php
3 /*
191 $message = sprintf('The text "%s" was not found anywhere in the "%s" response header.', $value, $name);
193 $this->assert(false !== stripos($actual, $value), $message);
194 }
207 $message = sprintf('The text "%s" was found in the "%s" response header, but it should not.', $value, $name);
209 $this->assert(false === stripos($actual, $value), $message);
210 }
751 $path = empty($parts['path']) ? '/' : $parts['path'];
753 return preg_replace('/^\/[^\.\/]+\.php\//', '/', $path).$fragment;
754 }
Multibyte.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 879 lines
3 * Multibyte handling methods.
4 *
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://cakephp.org CakePHP(tm) Project
14 * @package Cake.I18n
15 * @since CakePHP(tm) v 1.2.0.6833
139 */
140 public static function stristr($haystack, $needle, $part = false) {
141 $php = (PHP_VERSION < 5.3);
143 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
Multibyte.php (https://bitbucket.org/LeThanhDat/firstdummyapp.git) PHP · 881 lines
6 * PHP 5
7 *
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
10 *
142 */
143 public static function stristr($haystack, $needle, $part = false) {
144 $php = (PHP_VERSION < 5.3);
146 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
482 */
483 public static function strstr($haystack, $needle, $part = false) {
484 $php = (PHP_VERSION < 5.3);
486 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
parsedown.php (https://github.com/medieteknik/Medieteknik.nu.git) PHP · 1343 lines
1 <?php
3 #
158 case 'markup':
160 if (stripos($line, $contextData['start']) !== false) # opening tag
161 {
162 $contextData['depth']++;
163 }
165 if (stripos($line, $contextData['end']) !== false) # closing tag
166 {
167 if ($contextData['depth'] > 0)
619 );
621 if (stripos($line, $contextData['end']) !== false)
622 {
623 $context = null;
Multibyte.php (https://github.com/suzuki/candycane.git) PHP · 1134 lines
6 * PHP 5
7 *
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
9 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
10 *
396 */
397 public static function stristr($haystack, $needle, $part = false) {
398 $php = (PHP_VERSION < 5.3);
400 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
736 */
737 public static function strstr($haystack, $needle, $part = false) {
738 $php = (PHP_VERSION < 5.3);
740 if (($php && $part) || Multibyte::checkMultibyte($haystack)) {
CalendarDataController.php (https://github.com/hxfnd/Kurogo-Mobile-Web.git) PHP · 193 lines
1 <?php
2 /**
3 * CalendarDataController
182 foreach ($items as $occurrence) {
183 if ($this->contentFilter) {
184 if ( (stripos($occurrence->get_description(), $this->contentFilter)!==FALSE) || (stripos($occurrence->get_summary(), $this->contentFilter)!==FALSE)) {
185 $events[] = $occurrence;
186 }
TextData.php (https://github.com/livinglab/openlab.git) PHP · 672 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Calculation;
5 use PhpOffice\PhpSpreadsheet\Shared\Date;
6 use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
7 use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
237 }
239 $pos = mb_stripos($haystack, $needle, --$offset, 'UTF-8');
240 if ($pos !== false) {
241 return ++$pos;
SetCookie.php (https://gitlab.com/wuhang2003/rainloop-webmail) PHP · 410 lines
script.php (https://github.com/projectfork/Projectfork.git) PHP · 634 lines
1 <?php
2 /**
3 * @package pkg_projectfork
445 $string = implode('', $scripts);
447 if (stripos($string, 'jquery') === false) {
448 JHtml::_('script', 'com_projectfork/jquery/jquery.min.js', false, true, false, false, false);
449 JHtml::_('script', 'com_projectfork/jquery/jquery.noconflict.js', false, true, false, false, false);
469 $string = implode('', $scripts);
471 if (stripos($string, 'jquery.ui') === false) {
472 JHtml::_('script', 'com_projectfork/jquery/jquery.ui.core.min.js', false, true, false, false, false);
473 }
515 $string = implode('', $scripts);
517 if (stripos($string, 'jquery.ui.sortable') === false) {
518 JHtml::_('script', 'com_projectfork/jquery/jquery.ui.sortable.min.js', false, true, false, false, false);
519 }
Cookie.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 525 lines
mbstring.php (https://github.com/FractalizeR/php-stubs.git) PHP · 1203 lines
284 * (PHP 5 >= 5.2.0)<br/>
285 * Finds position of first occurrence of a string within another, case insensitive
286 * @link http://php.net/manual/en/function.mb-stripos.php
287 * @param string $haystack <p>
288 * The string from which to get the position of the first occurrence
463 /**
464 * (PHP 4 >= 4.0.6, PHP 5)<br/>
465 * Get part of string
466 * @link http://php.net/manual/en/function.mb-substr.php
565 /**
566 * (PHP 4 >= 4.0.6, PHP 5)<br/>
567 * Detect character encoding
568 * @link http://php.net/manual/en/function.mb-detect-encoding.php
extprofile_mb.h (https://github.com/kevlund/hiphop-php.git) C Header · 323 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
default.php (https://github.com/joomla/joomla-cms.git) PHP · 157 lines
1 <?php
3 /**
20 ?>
22 <?php if (!empty($this->msg)) : ?>
23 <?php echo $this->msg; ?>
24 <?php else : ?>
25 <?php $lang = Factory::getLanguage(); ?>
26 <?php $myrtl = $this->item->rtl; ?>
27 <?php $direction = ' '; ?>
129 <?php $uri = $this->rssDoc[$i]->uri || !$this->rssDoc[$i]->isPermaLink ? trim($this->rssDoc[$i]->uri) : trim($this->rssDoc[$i]->guid); ?>
130 <?php $uri = !$uri || stripos($uri, 'http') !== 0 ? $this->item->link : $uri; ?>
131 <?php $text = $this->rssDoc[$i]->content !== '' ? trim($this->rssDoc[$i]->content) : ''; ?>
ProviderTrait.php (https://gitlab.com/I-NOZex/quiz) PHP · 243 lines
1 <?php
3 namespace schmunk42\giiant\generators\crud;
25 __DIR__.DIRECTORY_SEPARATOR.'providers',
26 [
27 'only' => ['*.php'],
28 'recursive' => false,
29 ]
37 get_declared_classes(),
38 function ($a) {
39 return stripos($a, __NAMESPACE__.'\providers') !== false;
40 }
41 );
200 } elseif ($column->type === 'text') {
201 $format = 'ntext';
202 } elseif (stripos($column->name, 'time') !== false && $column->phpType === 'integer') {
203 $format = 'datetime';
204 } elseif (stripos($column->name, 'email') !== false) {
mbstring.php (https://github.com/haegyung/aptana-php.git) PHP · 1172 lines
23 /**
24 * Make a string uppercase
25 * @link http://www.php.net/manual/en/function.mb-strtoupper.php
26 * @param str string <p>
27 * The string being uppercased.
268 /**
269 * Finds position of first occurrence of a string within another, case insensitive
270 * @link http://www.php.net/manual/en/function.mb-stripos.php
271 * @param haystack string <p>
272 * The string from which to get the position of the first occurrence
398 /**
399 * Finds the last occurrence of a character in a string within another, case insensitive
400 * @link http://www.php.net/manual/en/function.mb-strrichr.php
401 * @param haystack string <p>
402 * The string from which to get the last occurrence
sfTesterDoctrine.class.php (https://github.com/bheneka/gitta.git) PHP · 177 lines
featured.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 173 lines
pma_gis_geometrycollection.php (https://github.com/slikk66/DbAdmin.git) PHP · 336 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles actions related to GIS GEOMETRYCOLLECTION objects
5 *
6 * @package PhpMyAdmin-GIS
7 */
9 if (! defined('PHPMYADMIN')) {
10 exit;
11 }
14 * Handles actions related to GIS GEOMETRYCOLLECTION objects
15 *
16 * @package PhpMyAdmin-GIS
17 */
18 class PMA_GIS_Geometrycollection extends PMA_GIS_Geometry
filter.class.inc.php (https://github.com/modxcms-jp/evolution-jp.git) PHP · 140 lines
1 <?php
3 /*
52 $rs['op'] = $op;
54 if(stripos($param['value'], '@EVAL') === 0) {
55 $eval_code = trim(
56 substr($param['value'],6)
106 case '=~' : return (strpos($doc_value, $creteria)===false);
107 case '!~' : return (strpos($doc_value, $creteria)!==false);
108 case 9 : return (stripos($doc_value, $creteria)===false);
109 case 10 : return (stripos($doc_value, $creteria)!==false);
extprofile_mb.h (https://github.com/tmjnaid/hiphop-php.git) C Header · 307 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
advcheckbox.php (https://bitbucket.org/ngmares/moodle.git) PHP · 137 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
26 */
28 require_once('HTML/QuickForm/advcheckbox.php');
30 /**
75 $attributes['class'] = $this->_group;
76 }
77 } elseif ($strpos = stripos($attributes, 'class="')) {
78 $attributes = str_ireplace('class="', 'class="' . $this->_group . ' ', $attributes);
79 } else {
styles.php (https://github.com/dextercowley/joomla-cms.git) PHP · 167 lines
Parameters.php (https://gitlab.com/ntphuc/BackendFeedy) PHP · 176 lines
1 <?php
3 /*
85 public static function parse($uri)
86 {
87 if (stripos($uri, 'unix') === 0) {
88 // Hack to support URIs for UNIX sockets with minimal effort.
89 $uri = str_ireplace('unix:///', 'unix://localhost/', $uri);
109 }
111 if (stripos($uri, 'redis') === 0) {
112 if (isset($parsed['pass'])) {
113 $parsed['password'] = $parsed['pass'];
ProductAttributes.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 167 lines
mbstring.php (https://github.com/aptana/studio3-php.git) PHP · 1238 lines
5 /**
6 * Perform case folding on a string
7 * @link http://www.php.net/manual/en/function.mb-convert-case.php
8 * @param str string <p>
9 * The string being converted.
269 /**
270 * Finds position of first occurrence of a string within another, case insensitive
271 * @link http://www.php.net/manual/en/function.mb-stripos.php
272 * @param haystack string <p>
273 * The string from which to get the position of the first occurrence
399 /**
400 * Finds the last occurrence of a character in a string within another, case insensitive
401 * @link http://www.php.net/manual/en/function.mb-strrichr.php
402 * @param haystack string <p>
403 * The string from which to get the last occurrence
Parser.php (https://github.com/yumitsu/adept_framework.git) PHP · 542 lines
1 <?php
3 /**
76 if ($this->isLiteralMode()) {
77 $endPos = stripos($this->source, '</' . $this->literalEnd . '>', $start);
78 if ($endPos === false) {
79 throw new Adept_Template_Exception('Unexpected end of file in literal block', array(),
166 $this->position += 1; // ignore '>' string
167 break;
168 // <?php cases
169 case '?':
170 $start = $this->position;
requests.php (https://bitbucket.org/ke2083/transfans.co.uk-website.git) PHP · 190 lines
util.php (https://github.com/aramk/IMDb-Scraper.git) PHP · 179 lines
LabelGenerator.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 191 lines
1 <?php
2 /**
3 *
12 /**
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
14 */
15 class LabelGenerator
142 $outputPdf = new \Zend_Pdf();
143 foreach ($labelsContent as $content) {
144 if (stripos($content, '%PDF-') !== false) {
145 $pdfLabel = \Zend_Pdf::parse($content);
146 foreach ($pdfLabel->pages as $page) {