PageRenderTime 382ms queryFilters 2ms Sphinxql 63ms app.CodeModel.GetByIds 182ms findMatchingLines 103ms GetByIds 285ms meta 0ms repositoryFilters 15ms languageFilters 1ms sourceFilters 4ms

21,207 results for 'php chr repo:tof06/yii-bootstrap' (382 ms)

Source

Language

Repository

chr.html git://github.com/kvz/phpjs.git | HTML | 53 lines
20layout: function
21title: PHP's chr in JavaScript
22description: >-
23  Here’s what our current JavaScript equivalent to <a
24  href="https://php.net/manual/en/function.chr.php">PHP's chr</a> looks like.
25function: chr
27language: php
28permalink: php/strings/chr/
29alias:
31  - /functions/strings/chr/
32  - /php/chr/
33  - /functions/chr/
35{% codeblock lang:javascript %}module.exports = function chr (codePt) {
36  //  discuss at: https://locutus.io/php/chr/
37  // original by: Kevin van Zonneveld (https://kvz.io)
stripslashes_variation2.phpt https://github.com/kennyb/php-broken.git | Unknown | 334 lines
3--FILE--
4<?php
5/* Prototype  : string stripslashes ( string $str )
68                    'hello'.chr(0).'world',
69                    chr(0).'hello'.chr(0),
70                    chr(0).chr(0).'hello',
70                    chr(0).chr(0).'hello',
71                    chr(0),
72
75                    "'\\0.0.0.0'".chr(0),
76                    chr(0)."'c:\php\'",
77                    '"\\0.0.0.0"',
77                    '"\\0.0.0.0"',
78                    '"c:\php\"'.chr(0)."'",
79                    '"hello"'."'world'".chr(0).'//',
class.AJXP_Controller.php https://github.com/costinu/cms.git | PHP | 580 lines
328        $robustInstallPath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
329        $cmd = ConfService::getCoreConf("CLI_PHP")." ".$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
330        /* Inserted next 3 lines to quote the command if in windows - rmeske*/
331        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
332            $cmd = ConfService::getCoreConf("CLI_PHP")." ".chr(34).$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php".chr(34)." -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
333        }
351        /*
352        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
353            if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
358                $tmpBat = implode(DIRECTORY_SEPARATOR, array( $robustInstallPath, "data","tmp", md5(time()).".bat"));
359                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
360                AJXP_Logger::debug("Writing file $cmd to $tmpBat");
378    {
379        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
380              if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
SearchTokenizerTest.php https://github.com/drupal/drupal.git | PHP | 158 lines
130  /**
131   * Like PHP chr() function, but for unicode characters.
132   *
132   *
133   * Function chr() only works for ASCII characters up to character 255. This
134   * function converts a number to the corresponding unicode character. Adapted
142    if ($num < 2048) {
143      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
144    }
146    if ($num < 65536) {
147      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
148    }
150    if ($num < 2097152) {
151      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
152    }
SearchTokenizerTest.php https://gitlab.com/longphu/drupal8.git | PHP | 155 lines
129  /**
130   * Like PHP chr() function, but for unicode characters.
131   *
131   *
132   * chr() only works for ASCII characters up to character 255. This function
133   * converts a number to the corresponding unicode character. Adapted from
141    if ($num < 2048) {
142      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
143    }
145    if ($num < 65536) {
146      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
147    }
149    if ($num < 2097152) {
150      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
151    }
SearchTokenizerTest.php https://gitlab.com/qayoub/drupal.git | PHP | 155 lines
129  /**
130   * Like PHP chr() function, but for unicode characters.
131   *
131   *
132   * chr() only works for ASCII characters up to character 255. This function
133   * converts a number to the corresponding unicode character. Adapted from
141    if ($num < 2048) {
142      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
143    }
145    if ($num < 65536) {
146      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
147    }
149    if ($num < 2097152) {
150      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
151    }
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 162 lines
135  /**
136   * Like PHP chr() function, but for unicode characters.
137   *
137   *
138   * Function chr() only works for ASCII characters up to character 255. This
139   * function converts a number to the corresponding unicode character. Adapted
147    if ($num < 2048) {
148      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
149    }
151    if ($num < 65536) {
152      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
153    }
155    if ($num < 2097152) {
156      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
157    }
SearchTokenizerTest.php https://github.com/drupal/drupal.git | PHP | 155 lines
128  /**
129   * Like PHP chr() function, but for unicode characters.
130   *
130   *
131   * Function chr() only works for ASCII characters up to character 255. This
132   * function converts a number to the corresponding unicode character. Adapted
140    if ($num < 2048) {
141      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
142    }
144    if ($num < 65536) {
145      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
148    if ($num < 2097152) {
149      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
150    }
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 155 lines
128  /**
129   * Like PHP chr() function, but for unicode characters.
130   *
130   *
131   * Function chr() only works for ASCII characters up to character 255. This
132   * function converts a number to the corresponding unicode character. Adapted
140    if ($num < 2048) {
141      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
142    }
144    if ($num < 65536) {
145      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
148    if ($num < 2097152) {
149      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
150    }
9.phtml https://github.com/jverkoey/snaapilookup.git | Unknown | 4,524 lines
188<div class="function"><a href="/PHP/chown">chown</a></div>
189<div class="function"><a href="/PHP/chr">chr</a></div>
190<div class="function"><a href="/PHP/chroot">chroot</a></div>
3856<div class="function"><a href="/PHP/strcasecmp">strcasecmp</a></div>
3857<div class="function"><a href="/PHP/strchr">strchr</a></div>
3858<div class="function"><a href="/PHP/strcmp">strcmp</a></div>
3916<div class="function"><a href="/PHP/strptime">strptime</a></div>
3917<div class="function"><a href="/PHP/strrchr">strrchr</a></div>
3918<div class="function"><a href="/PHP/strrev">strrev</a></div>
4138<div class="function"><a href="/PHP/tidyNode->isJste">tidyNode->isJste</a></div>
4139<div class="function"><a href="/PHP/tidyNode->isPhp">tidyNode->isPhp</a></div>
4140<div class="function"><a href="/PHP/tidyNode->isText">tidyNode->isText</a></div>
4439<div class="function"><a href="/PHP/XSLTProcessor::importStylesheet">XSLTProcessor::importStylesheet</a></div>
4440<div class="function"><a href="/PHP/XSLTProcessor::registerPHPFunctions">XSLTProcessor::registerPHPFunctions</a></div>
4441<div class="function"><a href="/PHP/XSLTProcessor::removeParameter">XSLTProcessor::removeParameter</a></div>
phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
202		'addslashes' => 'php.addslashes',
203		'chr' => 'php.chr',
204		'crc32' => 'php.crc32',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
all-functions.html https://github.com/techi602/develcz2013.git | HTML | 5,129 lines
2308<li><a href="http://www.php.net/manual/en/function.mb-strpos.php">mb_strpos</a></li>
2309<li><a href="http://www.php.net/manual/en/function.mb-strrchr.php">mb_strrchr</a></li>
2310<li><a href="http://www.php.net/manual/en/function.mb-strrichr.php">mb_strrichr</a></li>
3503<li><a href="http://www.php.net/manual/en/function.php-check-syntax.php">php_check_syntax</a></li>
3504<li><a href="http://www.php.net/manual/en/function.php-ini-loaded-file.php">php_ini_loaded_file</a></li>
3505<li><a href="http://www.php.net/manual/en/function.php-ini-scanned-files.php">php_ini_scanned_files</a></li>
4263<li><a href="http://www.php.net/manual/en/function.strcasecmp.php">strcasecmp</a></li>
4264<li><a href="http://www.php.net/manual/en/function.strchr.php">strchr</a></li>
4265<li><a href="http://www.php.net/manual/en/function.strcmp.php">strcmp</a></li>
4328<li><a href="http://www.php.net/manual/en/function.strptime.php">strptime</a></li>
4329<li><a href="http://www.php.net/manual/en/function.strrchr.php">strrchr</a></li>
4330<li><a href="http://www.php.net/manual/en/function.strrev.php">strrev</a></li>
4695<li><a href="http://www.php.net/manual/en/function.trader-stochf.php">trader_stochf</a></li>
4696<li><a href="http://www.php.net/manual/en/function.trader-stochrsi.php">trader_stochrsi</a></li>
4697<li><a href="http://www.php.net/manual/en/function.trader-sub.php">trader_sub</a></li>
index.html http://phptshell.googlecode.com/svn/trunk/ | HTML | 123 lines
12  <p class="para">
13   ??????????????? <a class="link" href="ref.regex.php">POSIX ???????</a>? <a class="link" href="ref.pcre.php">Perl ?????????</a>?
14  </p>
24			<li><a href="function.chop.php">chop</a> &mdash; rtrim ???</li>
25			<li><a href="function.chr.php">chr</a> &mdash; ???????</li>
26			<li><a href="function.chunk-split.php">chunk_split</a> &mdash; ?????????</li>
81			<li><a href="function.strcasecmp.php">strcasecmp</a> &mdash; ??????????????????</li>
82			<li><a href="function.strchr.php">strchr</a> &mdash; ?? strstr</li>
83			<li><a href="function.strcmp.php">strcmp</a> &mdash; ??????????</li>
85			<li><a href="function.strcspn.php">strcspn</a> &mdash; ?????????????????</li>
86			<li><a href="function.strip-tags.php">strip_tags</a> &mdash; ??????? HTML ? PHP ??</li>
87			<li><a href="function.stripcslashes.php">stripcslashes</a> &mdash; ??????? addcslashes ??????</li>
97			<li><a href="function.strpos.php">strpos</a> &mdash; ????????????</li>
98			<li><a href="function.strrchr.php">strrchr</a> &mdash; ??????????????????</li>
99			<li><a href="function.strrev.php">strrev</a> &mdash; ?????</li>
t3php-mode.info https://github.com/joachimmathes/punkt_emacs.git | Unknown | 1,481 lines
91     (setq auto-mode-alist (cons '("\\.php$" . t3php-mode) auto-mode-alist))
92     (autoload 't3php-mode "t3php-mode" "TYPO3-PHP input file editing mode." t)
93   If you just want to test T3PHP Mode or are not eager to modify your
906
907File: t3php-mode.info,  Node: PHP syntax formatting,  Next: Using phpDoc,  Prev: File structure,  Up: TYPO3 Coding Guidelines
908
1175
1176File: t3php-mode.info,  Node: Booleans,  Next: PHP5 features,  Prev: Strings,  Up: PHP syntax formatting
1177
1185
1186File: t3php-mode.info,  Node: PHP5 features,  Next: Global variables,  Prev: Booleans,  Up: PHP syntax formatting
1187
1266
1267File: t3php-mode.info,  Node: Using phpDoc,  Next: The ChangeLog file,  Prev: PHP syntax formatting,  Up: TYPO3 Coding Guidelines
1268
chr.js git://github.com/kvz/phpjs.git | JavaScript | 18 lines
1module.exports = function chr (codePt) {
2  //  discuss at: https://locutus.io/php/chr/
3  // original by: Kevin van Zonneveld (https://kvz.io)
4  // improved by: Brett Zamir (https://brett-zamir.me)
5  //   example 1: chr(75) === 'K'
6  //   example 1: chr(65536) === '\uD800\uDC00'
SQLiteDialect.class.php git://github.com/xp-framework/xp-framework.git | PHP | 243 lines
50        'datediff_3'   => 'datediff_not_implemented',
51        'datename_2'   => 'php("strval", php("idate", %t, php("strtotime", %s)))',
52        'datepart_2'   => 'php("idate", %t, php("strtotime", %s))',
57        'getdate_0'    => 'php("date", "Y-m-d H:i:s", php("time"))',
58        'hour_1'       => 'php("idate", "H", php("strtotime", %s))',
59        'len_1'        => 'php("strlen", %s)',
68        'minute_1'     => 'php("idate", "i", php("strtotime", %s))',
69        'month_1'      => 'php("idate", "m", php("strtotime", %s))',
70        'nullif_2'     => 'nullif(%s, %s)',
78        'rtrim_2'      => 'php("rtrim", %s, %s)',
79        'second_1'     => 'php("idate", "s", php("strtotime", %s))',
80        'sign_1'       => 'sign(%d)',
91        'upper_1'      => 'php("strtoupper", %s)',
92        'year_1'       => 'php("idate", "Y", php("strtotime", %s))',
93      );
SQLFunctionTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 395 lines
164      '(\'aa\' || str(getdate()) || \'cc\') as "concatTest"',
165      '\'aa\' || php(\'strval\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\'))) || \'cc\' as \'concatTest\'',
166      create(new \rdbms\Criteria())->setProjection(SQLFunctions::concat('aa', SQLFunctions::str(SQLFunctions::getdate()), 'cc'), 'concatTest')
201      'datename(hour, getdate())',
202      'php(\'strval\', php(\'idate\', "H", php(\'strtotime\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\')))))',
203      create(new \rdbms\Criteria())->setProjection(SQLFunctions::datename('hour', SQLFunctions::getdate()))
261      'round(1.5, 0) as "roundtest1", round(1.49, 0) as "roundtest2", round(1.49, 1) as "roundtest3"',
262      'php(\'round\', 1.5, 0) as \'roundtest1\', php(\'round\', 1.49, 0) as \'roundtest2\', php(\'round\', 1.49, 1) as \'roundtest3\'',
263      create(new \rdbms\Criteria())->setProjection(\rdbms\criterion\Projections::ProjectionList()
383      'where job_id = ceil(asin(sin(0.125)))',
384      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
385      create(new \rdbms\Criteria())->add(Restrictions::equal('job_id', SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
390      'where job_id = ceil(asin(sin(0.125)))',
391      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
392      create(new \rdbms\Criteria())->add(Restrictions::equal(Job::column('job_id'), SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
lancheck.php https://github.com/CasperGemini/e107.git | PHP | 1,833 lines
572		$message = "<div style='text-align:left'><br />";
573		$input .= chr(60)."?php\n";
574		if ($old_kom == "")
1247		/*
1248		* @see http://hsivonen.iki.fi/php-utf8/   validation.php
1249		*/
1328					$bomkey = str_replace(".php","",$k_check);
1329					$bom_error = ($check['bom'][$bomkey]) ? "<span class='error'><em>".str_replace("[php]", "<?php", LAN_CHECK_15)."</em></span><br />" : ""; // illegal chars
1330	
1338						if($sk == "LC_ALL"){
1339							$check[$k][$sk] = str_replace(chr(34).chr(34),"",$check[$k][$sk]);
1340						}
1781	function is_utf8($str) {
1782		// @see http://hsivonen.iki.fi/php-utf8/   validation.php
1783	
util.php https://github.com/schwarzmedia/bolt.git | PHP | 2,107 lines
1038                     .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
1039                     .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
1040                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1040                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1041                     .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
1042                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1042                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1043                     .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
1044                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1044                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1045                     .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
1046                     .chr(252).chr(253).chr(255);
1050                $string = strtr( $string, $chars['in'], $chars['out'] );
1051                $double_chars['in'] = array( chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254) );
1052                $double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
lizardbot.php https://github.com/revi/LizardBot-PHP.git | PHP | 2,210 lines
333                    '/fail bot[!?.]*$/i' => '%n: Fail human.',
334                    '/good bot[!?.]*$/i' => chr(1).'ACTION purrs at %n'.chr(1),
335                    '/^ping$/i' => 'pong',
1058
1059	if($d[3] == chr(001) . "FINGER" . chr(001)) {
1060		$ctcpcount++;
1107/*		fwrite($ircc, "PRIVMSG $c :$target2: Hello!  I am LizardBot-1, FastLizard4's PHP bot.  I am written 
1108in PHP 5 Procedural.  I work on both Windows and *Nix systems with PHP installed.  I am run from the command line.  These are the commands you can run (the trigger is {$setTrigger}):\r\n");
1109		sleep(2);
1704		$php_os = PHP_OS;
1705		$data = "I am bot {$nick}. Software: LizardBot for PHP v{$version} (http://fastlizard4.org/wiki/LizardBot) on OS {$php_os}; Uptime: {$uptime['current']}; I have been used a total of {$totalcount} times (Commands: {$cmdcount} [Of which, {$insultcount} were insult commands], Server pings: {$pingcount}, Recognized CTCPs: {$ctcpcount}, AI calls: {$aicount}, Fishbot calls: {$fishcount}).";
1706		$target = explode("!", $d[0]);
1783			if(!$apiPipeSetoptSuccess) { // Uhoh, it looks like that, for some reason, configuration of the pipe failed.
1784				$data = "For some reason, curl_setopt_array() configuration failed.  Perhaps you're running an obsolete version of PHP-cURL?  Or perhaps your version of PHP is outdated?";
1785			} else { // Configuration worked, so we're free to continue.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21