PageRenderTime 72ms CodeModel.GetById 36ms RepoModel.GetById 0ms app.codeStats 1ms

/plugins/com.aptana.editor.php.epl/Resources/language/php5.3/standard.php

https://gitlab.com/N3X15/studio3-php
PHP | 11372 lines | 865 code | 676 blank | 9831 comment | 0 complexity | 2d3db2026b5d92568f4380db7664b400 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. // Start of standard v.5.3.2
  3. class __PHP_Incomplete_Class {
  4. }
  5. class php_user_filter {
  6. public $filtername;
  7. public $params;
  8. /**
  9. * @param in
  10. * @param out
  11. * @param consumed
  12. * @param closing
  13. */
  14. public function filter ($in, $out, &$consumed, $closing) {}
  15. public function onCreate () {}
  16. public function onClose () {}
  17. }
  18. class Directory {
  19. public function close () {}
  20. public function rewind () {}
  21. public function read () {}
  22. }
  23. /**
  24. * Returns the value of a constant
  25. * @link http://www.php.net/manual/en/function.constant.php
  26. * @param name string <p>
  27. * The constant name.
  28. * </p>
  29. * @return mixed the value of the constant, or &null; if the constant is not
  30. * defined.
  31. */
  32. function constant ($name) {}
  33. /**
  34. * Convert binary data into hexadecimal representation
  35. * @link http://www.php.net/manual/en/function.bin2hex.php
  36. * @param str string <p>
  37. * A character.
  38. * </p>
  39. * @return string the hexadecimal representation of the given string.
  40. */
  41. function bin2hex ($str) {}
  42. /**
  43. * Delay execution
  44. * @link http://www.php.net/manual/en/function.sleep.php
  45. * @param seconds int <p>
  46. * Halt time in seconds.
  47. * </p>
  48. * @return int zero on success, or false on errors. If the call was interrupted
  49. * by a signal, sleep returns the number of seconds left
  50. * to sleep.
  51. */
  52. function sleep ($seconds) {}
  53. /**
  54. * Delay execution in microseconds
  55. * @link http://www.php.net/manual/en/function.usleep.php
  56. * @param micro_seconds int <p>
  57. * Halt time in micro seconds. A micro second is one millionth of a
  58. * second.
  59. * </p>
  60. * @return void
  61. */
  62. function usleep ($micro_seconds) {}
  63. /**
  64. * Delay for a number of seconds and nanoseconds
  65. * @link http://www.php.net/manual/en/function.time-nanosleep.php
  66. * @param seconds int <p>
  67. * Must be a positive integer.
  68. * </p>
  69. * @param nanoseconds int <p>
  70. * Must be a positive integer less than 1 billion.
  71. * </p>
  72. * @return mixed Returns true on success or false on failure.
  73. * </p>
  74. * <p>
  75. * If the delay was interrupted by a signal, an associative array will be
  76. * returned with the components:
  77. * seconds - number of seconds remaining in
  78. * the delay
  79. * nanoseconds - number of nanoseconds
  80. * remaining in the delay
  81. */
  82. function time_nanosleep ($seconds, $nanoseconds) {}
  83. /**
  84. * Make the script sleep until the specified time
  85. * @link http://www.php.net/manual/en/function.time-sleep-until.php
  86. * @param timestamp float <p>
  87. * The timestamp when the script should wake.
  88. * </p>
  89. * @return bool Returns true on success or false on failure.
  90. */
  91. function time_sleep_until ($timestamp) {}
  92. /**
  93. * Parse a time/date generated with <function>strftime</function>
  94. * @link http://www.php.net/manual/en/function.strptime.php
  95. * @param date string <p>
  96. * The string to parse (e.g. returned from strftime)
  97. * </p>
  98. * @param format string <p>
  99. * The format used in date (e.g. the same as
  100. * used in strftime).
  101. * </p>
  102. * <p>
  103. * For more information about the format options, read the
  104. * strftime page.
  105. * </p>
  106. * @return array an array&return.falseforfailure;.
  107. * </p>
  108. * <p>
  109. * <table>
  110. * The following parameters are returned in the array
  111. * <tr valign="top">
  112. * <td>parameters</td>
  113. * <td>Description</td>
  114. * </tr>
  115. * <tr valign="top">
  116. * <td>"tm_sec"</td>
  117. * <td>Seconds after the minute (0-61)</td>
  118. * </tr>
  119. * <tr valign="top">
  120. * <td>"tm_min"</td>
  121. * <td>Minutes after the hour (0-59)</td>
  122. * </tr>
  123. * <tr valign="top">
  124. * <td>"tm_hour"</td>
  125. * <td>Hour since midnight (0-23)</td>
  126. * </tr>
  127. * <tr valign="top">
  128. * <td>"tm_mday"</td>
  129. * <td>Day of the month (1-31)</td>
  130. * </tr>
  131. * <tr valign="top">
  132. * <td>"tm_mon"</td>
  133. * <td>Months since January (0-11)</td>
  134. * </tr>
  135. * <tr valign="top">
  136. * <td>"tm_year"</td>
  137. * <td>Years since 1900</td>
  138. * </tr>
  139. * <tr valign="top">
  140. * <td>"tm_wday"</td>
  141. * <td>Days since Sunday (0-6)</td>
  142. * </tr>
  143. * <tr valign="top">
  144. * <td>"tm_yday"</td>
  145. * <td>Days since January 1 (0-365)</td>
  146. * </tr>
  147. * <tr valign="top">
  148. * <td>"unparsed"</td>
  149. * <td>the date part which was not
  150. * recognized using the specified format</td>
  151. * </tr>
  152. * </table>
  153. */
  154. function strptime ($date, $format) {}
  155. /**
  156. * Flush the output buffer
  157. * @link http://www.php.net/manual/en/function.flush.php
  158. * @return void
  159. */
  160. function flush () {}
  161. /**
  162. * Wraps a string to a given number of characters
  163. * @link http://www.php.net/manual/en/function.wordwrap.php
  164. * @param str string <p>
  165. * The input string.
  166. * </p>
  167. * @param width int[optional] <p>
  168. * The column width.
  169. * </p>
  170. * @param break string[optional] <p>
  171. * The line is broken using the optional
  172. * break parameter.
  173. * </p>
  174. * @param cut bool[optional] <p>
  175. * If the cut is set to true, the string is
  176. * always wrapped at or before the specified width. So if you have
  177. * a word that is larger than the given width, it is broken apart.
  178. * (See second example).
  179. * </p>
  180. * @return string the given string wrapped at the specified column.
  181. */
  182. function wordwrap ($str, $width = null, $break = null, $cut = null) {}
  183. /**
  184. * Convert special characters to HTML entities
  185. * @link http://www.php.net/manual/en/function.htmlspecialchars.php
  186. * @param string string <p>
  187. * The string being converted.
  188. * </p>
  189. * @param quote_style int[optional] <p>
  190. * The optional second argument, quote_style, tells
  191. * the function what to do with single and double quote characters.
  192. * The default mode, ENT_COMPAT, is the backwards compatible mode
  193. * which only translates the double-quote character and leaves the
  194. * single-quote untranslated. If ENT_QUOTES is set, both single and
  195. * double quotes are translated and if ENT_NOQUOTES is set neither
  196. * single nor double quotes are translated.
  197. * </p>
  198. * @param charset string[optional] <p>
  199. * Defines character set used in conversion.
  200. * The default character set is ISO-8859-1.
  201. * </p>
  202. * <p>
  203. * For the purposes of this function, the charsets
  204. * ISO-8859-1, ISO-8859-15,
  205. * UTF-8, cp866,
  206. * cp1251, cp1252, and
  207. * KOI8-R are effectively equivalent, as the
  208. * characters affected by htmlspecialchars
  209. * occupy the same positions in all of these charsets.
  210. * </p>
  211. * &reference.strings.charsets;
  212. * @param double_encode bool[optional] <p>
  213. * When double_encode is turned off PHP will not
  214. * encode existing html entities, the default is to convert everything.
  215. * </p>
  216. * @return string The converted string.
  217. */
  218. function htmlspecialchars ($string, $quote_style = null, $charset = null, $double_encode = null) {}
  219. /**
  220. * Convert all applicable characters to HTML entities
  221. * @link http://www.php.net/manual/en/function.htmlentities.php
  222. * @param string string <p>
  223. * The input string.
  224. * </p>
  225. * @param quote_style int[optional] <p>
  226. * Like htmlspecialchars, the optional second
  227. * quote_style parameter lets you define what will
  228. * be done with 'single' and "double" quotes. It takes on one of three
  229. * constants with the default being ENT_COMPAT:
  230. * <table>
  231. * Available quote_style constants
  232. * <tr valign="top">
  233. * <td>Constant Name</td>
  234. * <td>Description</td>
  235. * </tr>
  236. * <tr valign="top">
  237. * <td>ENT_COMPAT</td>
  238. * <td>Will convert double-quotes and leave single-quotes alone.</td>
  239. * </tr>
  240. * <tr valign="top">
  241. * <td>ENT_QUOTES</td>
  242. * <td>Will convert both double and single quotes.</td>
  243. * </tr>
  244. * <tr valign="top">
  245. * <td>ENT_NOQUOTES</td>
  246. * <td>Will leave both double and single quotes unconverted.</td>
  247. * </tr>
  248. * </table>
  249. * </p>
  250. * @param charset string[optional] <p>
  251. * Like htmlspecialchars, it takes an optional
  252. * third argument charset which defines character
  253. * set used in conversion.
  254. * Presently, the ISO-8859-1 character set is used as the default.
  255. * </p>
  256. * &reference.strings.charsets;
  257. * @param double_encode bool[optional] <p>
  258. * When double_encode is turned off PHP will not
  259. * encode existing html entities. The default is to convert everything.
  260. * </p>
  261. * @return string the encoded string.
  262. */
  263. function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = null) {}
  264. /**
  265. * Convert all HTML entities to their applicable characters
  266. * @link http://www.php.net/manual/en/function.html-entity-decode.php
  267. * @param string string <p>
  268. * The input string.
  269. * </p>
  270. * @param quote_style int[optional] <p>
  271. * The optional second quote_style parameter lets
  272. * you define what will be done with 'single' and "double" quotes. It takes
  273. * on one of three constants with the default being
  274. * ENT_COMPAT:
  275. * <table>
  276. * Available quote_style constants
  277. * <tr valign="top">
  278. * <td>Constant Name</td>
  279. * <td>Description</td>
  280. * </tr>
  281. * <tr valign="top">
  282. * <td>ENT_COMPAT</td>
  283. * <td>Will convert double-quotes and leave single-quotes alone.</td>
  284. * </tr>
  285. * <tr valign="top">
  286. * <td>ENT_QUOTES</td>
  287. * <td>Will convert both double and single quotes.</td>
  288. * </tr>
  289. * <tr valign="top">
  290. * <td>ENT_NOQUOTES</td>
  291. * <td>Will leave both double and single quotes unconverted.</td>
  292. * </tr>
  293. * </table>
  294. * </p>
  295. * @param charset string[optional] <p>
  296. * The ISO-8859-1 character set is used as default for the optional third
  297. * charset. This defines the character set used in
  298. * conversion.
  299. * </p>
  300. * &reference.strings.charsets;
  301. * @return string the decoded string.
  302. */
  303. function html_entity_decode ($string, $quote_style = null, $charset = null) {}
  304. /**
  305. * Convert special HTML entities back to characters
  306. * @link http://www.php.net/manual/en/function.htmlspecialchars-decode.php
  307. * @param string string <p>
  308. * The string to decode
  309. * </p>
  310. * @param quote_style int[optional] <p>
  311. * The quote style. One of the following constants:
  312. * <table>
  313. * quote_style constants
  314. * <tr valign="top">
  315. * <td>Constant Name</td>
  316. * <td>Description</td>
  317. * </tr>
  318. * <tr valign="top">
  319. * <td>ENT_COMPAT</td>
  320. * <td>Will convert double-quotes and leave single-quotes alone
  321. * (default)</td>
  322. * </tr>
  323. * <tr valign="top">
  324. * <td>ENT_QUOTES</td>
  325. * <td>Will convert both double and single quotes</td>
  326. * </tr>
  327. * <tr valign="top">
  328. * <td>ENT_NOQUOTES</td>
  329. * <td>Will leave both double and single quotes unconverted</td>
  330. * </tr>
  331. * </table>
  332. * </p>
  333. * @return string the decoded string.
  334. */
  335. function htmlspecialchars_decode ($string, $quote_style = null) {}
  336. /**
  337. * Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
  338. * @link http://www.php.net/manual/en/function.get-html-translation-table.php
  339. * @param table int[optional] <p>
  340. * There are two new constants (HTML_ENTITIES,
  341. * HTML_SPECIALCHARS) that allow you to specify the
  342. * table you want.
  343. * </p>
  344. * @param quote_style int[optional] <p>
  345. * Like the htmlspecialchars and
  346. * htmlentities functions you can optionally specify
  347. * the quote_style you are working with.
  348. * See the description
  349. * of these modes in htmlspecialchars.
  350. * </p>
  351. * @return array the translation table as an array.
  352. */
  353. function get_html_translation_table ($table = null, $quote_style = null) {}
  354. /**
  355. * Calculate the sha1 hash of a string
  356. * @link http://www.php.net/manual/en/function.sha1.php
  357. * @param str string <p>
  358. * The input string.
  359. * </p>
  360. * @param raw_output bool[optional] <p>
  361. * If the optional raw_output is set to true,
  362. * then the sha1 digest is instead returned in raw binary format with a
  363. * length of 20, otherwise the returned value is a 40-character
  364. * hexadecimal number.
  365. * </p>
  366. * @return string the sha1 hash as a string.
  367. */
  368. function sha1 ($str, $raw_output = null) {}
  369. /**
  370. * Calculate the sha1 hash of a file
  371. * @link http://www.php.net/manual/en/function.sha1-file.php
  372. * @param filename string <p>
  373. * The filename of the file to hash.
  374. * </p>
  375. * @param raw_output bool[optional] <p>
  376. * When true, returns the digest in raw binary format with a length of
  377. * 20.
  378. * </p>
  379. * @return string a string on success, false otherwise.
  380. */
  381. function sha1_file ($filename, $raw_output = null) {}
  382. /**
  383. * Calculate the md5 hash of a string
  384. * @link http://www.php.net/manual/en/function.md5.php
  385. * @param str string <p>
  386. * The string.
  387. * </p>
  388. * @param raw_output bool[optional] <p>
  389. * If the optional raw_output is set to true,
  390. * then the md5 digest is instead returned in raw binary format with a
  391. * length of 16.
  392. * </p>
  393. * @return string the hash as a 32-character hexadecimal number.
  394. */
  395. function md5 ($str, $raw_output = null) {}
  396. /**
  397. * Calculates the md5 hash of a given file
  398. * @link http://www.php.net/manual/en/function.md5-file.php
  399. * @param filename string <p>
  400. * The filename
  401. * </p>
  402. * @param raw_output bool[optional] <p>
  403. * When true, returns the digest in raw binary format with a length of
  404. * 16.
  405. * </p>
  406. * @return string a string on success, false otherwise.
  407. */
  408. function md5_file ($filename, $raw_output = null) {}
  409. /**
  410. * Calculates the crc32 polynomial of a string
  411. * @link http://www.php.net/manual/en/function.crc32.php
  412. * @param str string <p>
  413. * The data.
  414. * </p>
  415. * @return int the crc32 checksum of str as an integer.
  416. */
  417. function crc32 ($str) {}
  418. /**
  419. * Parse a binary IPTC block into single tags.
  420. * @link http://www.php.net/manual/en/function.iptcparse.php
  421. * @param iptcblock string <p>
  422. * A binary IPTC block.
  423. * </p>
  424. * @return array an array using the tagmarker as an index and the value as the
  425. * value. It returns false on error or if no IPTC data was found.
  426. */
  427. function iptcparse ($iptcblock) {}
  428. /**
  429. * Embeds binary IPTC data into a JPEG image
  430. * @link http://www.php.net/manual/en/function.iptcembed.php
  431. * @param iptcdata string <p>
  432. * The data to be written.
  433. * </p>
  434. * @param jpeg_file_name string <p>
  435. * Path to the JPEG image.
  436. * </p>
  437. * @param spool int[optional] <p>
  438. * Spool flag. If the spool flag is over 2 then the JPEG will be
  439. * returned as a string.
  440. * </p>
  441. * @return mixed If success and spool flag is lower than 2 then the JPEG will not be
  442. * returned as a string, false on errors.
  443. */
  444. function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
  445. /**
  446. * Get the size of an image
  447. * @link http://www.php.net/manual/en/function.getimagesize.php
  448. * @param filename string <p>
  449. * This parameter specifies the file you wish to retrieve information
  450. * about. It can reference a local file or (configuration permitting) a
  451. * remote file using one of the supported streams.
  452. * </p>
  453. * @param imageinfo array[optional] <p>
  454. * This optional parameter allows you to extract some extended
  455. * information from the image file. Currently, this will return the
  456. * different JPG APP markers as an associative array.
  457. * Some programs use these APP markers to embed text information in
  458. * images. A very common one is to embed
  459. * IPTC information in the APP13 marker.
  460. * You can use the iptcparse function to parse the
  461. * binary APP13 marker into something readable.
  462. * </p>
  463. * @return array an array with 7 elements.
  464. * </p>
  465. * <p>
  466. * Index 0 and 1 contains respectively the width and the height of the image.
  467. * </p>
  468. * <p>
  469. * Some formats may contain no image or may contain multiple images. In these
  470. * cases, getimagesize might not be able to properly
  471. * determine the image size. getimagesize will return
  472. * zero for width and height in these cases.
  473. * </p>
  474. * <p>
  475. * Index 2 is one of the IMAGETYPE_XXX constants indicating
  476. * the type of the image.
  477. * </p>
  478. * <p>
  479. * Index 3 is a text string with the correct
  480. * height="yyy" width="xxx" string that can be used
  481. * directly in an IMG tag.
  482. * </p>
  483. * <p>
  484. * mime is the correspondant MIME type of the image.
  485. * This information can be used to deliver images with correct the HTTP
  486. * Content-type header:
  487. * </p>
  488. * <p>
  489. * Example #1 getimagesize and MIME types
  490. * </p>
  491. * <pre>
  492. * &lt;?php
  493. * $size = getimagesize($filename);
  494. * $fp = fopen($filename, "rb");
  495. * if ($size && $fp) {
  496. * &nbsp;&nbsp;header("Content-type: {$size['mime']}");
  497. * &nbsp;&nbsp;fpassthru($fp);
  498. * &nbsp;&nbsp;exit;
  499. * } else {
  500. * &nbsp;&nbsp;// error
  501. * }
  502. * ?&gt;
  503. * </pre>
  504. * <p>
  505. * channels will be 3 for RGB pictures and 4 for CMYK
  506. * pictures.
  507. * </p>
  508. * <p>
  509. * bits is the number of bits for each color.
  510. * </p>
  511. * <p>
  512. * For some image types, the presence of channels and
  513. * bits values can be a bit
  514. * confusing. As an example, GIF always uses 3 channels
  515. * per pixel, but the number of bits per pixel cannot be calculated for an
  516. * animated GIF with a global color table.
  517. * </p>
  518. * <p>
  519. * On failure, false is returned.
  520. */
  521. function getimagesize ($filename, array &$imageinfo = null) {}
  522. /**
  523. * Get Mime-Type for image-type returned by getimagesize,
  524. exif_read_data, exif_thumbnail, exif_imagetype
  525. * @link http://www.php.net/manual/en/function.image-type-to-mime-type.php
  526. * @param imagetype int <p>
  527. * One of the IMAGETYPE_XXX constants.
  528. * </p>
  529. * @return string The returned values are as follows
  530. * <table>
  531. * Returned values Constants
  532. * <tr valign="top">
  533. * <td>imagetype</td>
  534. * <td>Returned value</td>
  535. * </tr>
  536. * <tr valign="top">
  537. * <td>IMAGETYPE_GIF</td>
  538. * <td>image/gif</td>
  539. * </tr>
  540. * <tr valign="top">
  541. * <td>IMAGETYPE_JPEG</td>
  542. * <td>image/jpeg</td>
  543. * </tr>
  544. * <tr valign="top">
  545. * <td>IMAGETYPE_PNG</td>
  546. * <td>image/png</td>
  547. * </tr>
  548. * <tr valign="top">
  549. * <td>IMAGETYPE_SWF</td>
  550. * <td>application/x-shockwave-flash</td>
  551. * </tr>
  552. * <tr valign="top">
  553. * <td>IMAGETYPE_PSD</td>
  554. * <td>image/psd</td>
  555. * </tr>
  556. * <tr valign="top">
  557. * <td>IMAGETYPE_BMP</td>
  558. * <td>image/bmp</td>
  559. * </tr>
  560. * <tr valign="top">
  561. * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
  562. * <td>image/tiff</td>
  563. * </tr>
  564. * <tr valign="top">
  565. * <td>
  566. * IMAGETYPE_TIFF_MM (motorola byte order)
  567. * </td>
  568. * <td>image/tiff</td>
  569. * </tr>
  570. * <tr valign="top">
  571. * <td>IMAGETYPE_JPC</td>
  572. * <td>application/octet-stream</td>
  573. * </tr>
  574. * <tr valign="top">
  575. * <td>IMAGETYPE_JP2</td>
  576. * <td>image/jp2</td>
  577. * </tr>
  578. * <tr valign="top">
  579. * <td>IMAGETYPE_JPX</td>
  580. * <td>application/octet-stream</td>
  581. * </tr>
  582. * <tr valign="top">
  583. * <td>IMAGETYPE_JB2</td>
  584. * <td>application/octet-stream</td>
  585. * </tr>
  586. * <tr valign="top">
  587. * <td>IMAGETYPE_SWC</td>
  588. * <td>application/x-shockwave-flash</td>
  589. * </tr>
  590. * <tr valign="top">
  591. * <td>IMAGETYPE_IFF</td>
  592. * <td>image/iff</td>
  593. * </tr>
  594. * <tr valign="top">
  595. * <td>IMAGETYPE_WBMP</td>
  596. * <td>image/vnd.wap.wbmp</td>
  597. * </tr>
  598. * <tr valign="top">
  599. * <td>IMAGETYPE_XBM</td>
  600. * <td>image/xbm</td>
  601. * </tr>
  602. * <tr valign="top">
  603. * <td>IMAGETYPE_ICO</td>
  604. * <td>image/vnd.microsoft.icon</td>
  605. * </tr>
  606. * </table>
  607. */
  608. function image_type_to_mime_type ($imagetype) {}
  609. /**
  610. * Get file extension for image type
  611. * @link http://www.php.net/manual/en/function.image-type-to-extension.php
  612. * @param imagetype int <p>
  613. * One of the IMAGETYPE_XXX constant.
  614. * </p>
  615. * @param include_dot bool[optional] <p>
  616. * Whether to prepend a dot to the extension or not. Default to true.
  617. * </p>
  618. * @return string A string with the extension corresponding to the given image type.
  619. */
  620. function image_type_to_extension ($imagetype, $include_dot = null) {}
  621. /**
  622. * Outputs information about PHP's configuration
  623. * @link http://www.php.net/manual/en/function.phpinfo.php
  624. * @param what int[optional] <p>
  625. * The output may be customized by passing one or more of the
  626. * following constants bitwise values summed
  627. * together in the optional what parameter.
  628. * One can also combine the respective constants or bitwise values
  629. * together with the or operator.
  630. * </p>
  631. * <p>
  632. * <table>
  633. * phpinfo options
  634. * <tr valign="top">
  635. * <td>Name (constant)</td>
  636. * <td>Value</td>
  637. * <td>Description</td>
  638. * </tr>
  639. * <tr valign="top">
  640. * <td>INFO_GENERAL</td>
  641. * <td>1</td>
  642. * <td>
  643. * The configuration line, &php.ini; location, build date, Web
  644. * Server, System and more.
  645. * </td>
  646. * </tr>
  647. * <tr valign="top">
  648. * <td>INFO_CREDITS</td>
  649. * <td>2</td>
  650. * <td>
  651. * PHP Credits. See also phpcredits.
  652. * </td>
  653. * </tr>
  654. * <tr valign="top">
  655. * <td>INFO_CONFIGURATION</td>
  656. * <td>4</td>
  657. * <td>
  658. * Current Local and Master values for PHP directives. See
  659. * also ini_get.
  660. * </td>
  661. * </tr>
  662. * <tr valign="top">
  663. * <td>INFO_MODULES</td>
  664. * <td>8</td>
  665. * <td>
  666. * Loaded modules and their respective settings. See also
  667. * get_loaded_extensions.
  668. * </td>
  669. * </tr>
  670. * <tr valign="top">
  671. * <td>INFO_ENVIRONMENT</td>
  672. * <td>16</td>
  673. * <td>
  674. * Environment Variable information that's also available in
  675. * $_ENV.
  676. * </td>
  677. * </tr>
  678. * <tr valign="top">
  679. * <td>INFO_VARIABLES</td>
  680. * <td>32</td>
  681. * <td>
  682. * Shows all
  683. * predefined variables from EGPCS (Environment, GET,
  684. * POST, Cookie, Server).
  685. * </td>
  686. * </tr>
  687. * <tr valign="top">
  688. * <td>INFO_LICENSE</td>
  689. * <td>64</td>
  690. * <td>
  691. * PHP License information. See also the license FAQ.
  692. * </td>
  693. * </tr>
  694. * <tr valign="top">
  695. * <td>INFO_ALL</td>
  696. * <td>-1</td>
  697. * <td>
  698. * Shows all of the above.
  699. * </td>
  700. * </tr>
  701. * </table>
  702. * </p>
  703. * @return bool Returns true on success or false on failure.
  704. */
  705. function phpinfo ($what = null) {}
  706. /**
  707. * Gets the current PHP version
  708. * @link http://www.php.net/manual/en/function.phpversion.php
  709. * @param extension string[optional] <p>
  710. * An optional extension name.
  711. * </p>
  712. * @return string If the optional extension parameter is
  713. * specified, phpversion returns the version of that
  714. * extension, or false if there is no version information associated or
  715. * the extension isn't enabled.
  716. */
  717. function phpversion ($extension = null) {}
  718. /**
  719. * Prints out the credits for PHP
  720. * @link http://www.php.net/manual/en/function.phpcredits.php
  721. * @param flag int[optional] <p>
  722. * To generate a custom credits page, you may want to use the
  723. * flag parameter.
  724. * </p>
  725. * <p>
  726. * <table>
  727. * Pre-defined phpcredits flags
  728. * <tr valign="top">
  729. * <td>name</td>
  730. * <td>description</td>
  731. * </tr>
  732. * <tr valign="top">
  733. * <td>CREDITS_ALL</td>
  734. * <td>
  735. * All the credits, equivalent to using: CREDITS_DOCS +
  736. * CREDITS_GENERAL + CREDITS_GROUP +
  737. * CREDITS_MODULES + CREDITS_FULLPAGE.
  738. * It generates a complete stand-alone HTML page with the appropriate tags.
  739. * </td>
  740. * </tr>
  741. * <tr valign="top">
  742. * <td>CREDITS_DOCS</td>
  743. * <td>The credits for the documentation team</td>
  744. * </tr>
  745. * <tr valign="top">
  746. * <td>CREDITS_FULLPAGE</td>
  747. * <td>
  748. * Usually used in combination with the other flags. Indicates
  749. * that a complete stand-alone HTML page needs to be
  750. * printed including the information indicated by the other
  751. * flags.
  752. * </td>
  753. * </tr>
  754. * <tr valign="top">
  755. * <td>CREDITS_GENERAL</td>
  756. * <td>
  757. * General credits: Language design and concept, PHP authors
  758. * and SAPI module.
  759. * </td>
  760. * </tr>
  761. * <tr valign="top">
  762. * <td>CREDITS_GROUP</td>
  763. * <td>A list of the core developers</td>
  764. * </tr>
  765. * <tr valign="top">
  766. * <td>CREDITS_MODULES</td>
  767. * <td>
  768. * A list of the extension modules for PHP, and their authors
  769. * </td>
  770. * </tr>
  771. * <tr valign="top">
  772. * <td>CREDITS_SAPI</td>
  773. * <td>
  774. * A list of the server API modules for PHP, and their authors
  775. * </td>
  776. * </tr>
  777. * </table>
  778. * </p>
  779. * @return bool Returns true on success or false on failure.
  780. */
  781. function phpcredits ($flag = null) {}
  782. /**
  783. * Gets the logo guid
  784. * @link http://www.php.net/manual/en/function.php-logo-guid.php
  785. * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
  786. */
  787. function php_logo_guid () {}
  788. function php_real_logo_guid () {}
  789. function php_egg_logo_guid () {}
  790. /**
  791. * Gets the Zend guid
  792. * @link http://www.php.net/manual/en/function.zend-logo-guid.php
  793. * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
  794. */
  795. function zend_logo_guid () {}
  796. /**
  797. * Returns the type of interface between web server and PHP
  798. * @link http://www.php.net/manual/en/function.php-sapi-name.php
  799. * @return string the interface type, as a lowercase string.
  800. * </p>
  801. * <p>
  802. * Although not exhaustive, the possible return values include
  803. * aolserver, apache,
  804. * apache2filter, apache2handler,
  805. * caudium, cgi (until PHP 5.3),
  806. * cgi-fcgi, cli,
  807. * continuity, embed,
  808. * isapi, litespeed,
  809. * milter, nsapi,
  810. * phttpd, pi3web, roxen,
  811. * thttpd, tux, and webjames.
  812. */
  813. function php_sapi_name () {}
  814. /**
  815. * Returns information about the operating system PHP is running on
  816. * @link http://www.php.net/manual/en/function.php-uname.php
  817. * @param mode string[optional] <p>
  818. * mode is a single character that defines what
  819. * information is returned:
  820. * 'a': This is the default. Contains all modes in
  821. * the sequence "s n r v m".
  822. * @return string the description, as a string.
  823. */
  824. function php_uname ($mode = null) {}
  825. /**
  826. * Return a list of .ini files parsed from the additional ini dir
  827. * @link http://www.php.net/manual/en/function.php-ini-scanned-files.php
  828. * @return string a comma-separated string of .ini files on success. Each comma is
  829. * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
  830. * false is returned. If it was set and the directory was empty, an
  831. * empty string is returned. If a file is unrecognizable, the file will
  832. * still make it into the returned string but a PHP error will also result.
  833. * This PHP error will be seen both at compile time and while using
  834. * php_ini_scanned_files.
  835. */
  836. function php_ini_scanned_files () {}
  837. /**
  838. * Retrieve a path to the loaded php.ini file
  839. * @link http://www.php.net/manual/en/function.php-ini-loaded-file.php
  840. * @return string The loaded &php.ini; path, or false if one is not loaded.
  841. */
  842. function php_ini_loaded_file () {}
  843. /**
  844. * String comparisons using a "natural order" algorithm
  845. * @link http://www.php.net/manual/en/function.strnatcmp.php
  846. * @param str1 string <p>
  847. * The first string.
  848. * </p>
  849. * @param str2 string <p>
  850. * The second string.
  851. * </p>
  852. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  853. * str1 is less than str2; &gt;
  854. * 0 if str1 is greater than
  855. * str2, and 0 if they are equal.
  856. */
  857. function strnatcmp ($str1, $str2) {}
  858. /**
  859. * Case insensitive string comparisons using a "natural order" algorithm
  860. * @link http://www.php.net/manual/en/function.strnatcasecmp.php
  861. * @param str1 string <p>
  862. * The first string.
  863. * </p>
  864. * @param str2 string <p>
  865. * The second string.
  866. * </p>
  867. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  868. * str1 is less than str2 &gt;
  869. * 0 if str1 is greater than
  870. * str2, and 0 if they are equal.
  871. */
  872. function strnatcasecmp ($str1, $str2) {}
  873. /**
  874. * Count the number of substring occurrences
  875. * @link http://www.php.net/manual/en/function.substr-count.php
  876. * @param haystack string <p>
  877. * The string to search in
  878. * </p>
  879. * @param needle string <p>
  880. * The substring to search for
  881. * </p>
  882. * @param offset int[optional] <p>
  883. * The offset where to start counting
  884. * </p>
  885. * @param length int[optional] <p>
  886. * The maximum length after the specified offset to search for the
  887. * substring. It outputs a warning if the offset plus the length is
  888. * greater than the haystack length.
  889. * </p>
  890. * @return int This functions returns an integer.
  891. */
  892. function substr_count ($haystack, $needle, $offset = null, $length = null) {}
  893. /**
  894. * Finds the length of the first segment of a string consisting
  895. entirely of characters contained within a given mask.
  896. * @link http://www.php.net/manual/en/function.strspn.php
  897. * @param subject string <p>
  898. * The string to examine.
  899. * </p>
  900. * @param mask string <p>
  901. * The list of allowable characters to include in counted segments.
  902. * </p>
  903. * @param start int[optional] <p>
  904. * The position in subject to
  905. * start searching.
  906. * </p>
  907. * <p>
  908. * If start is given and is non-negative,
  909. * then strspn will begin
  910. * examining subject at
  911. * the start'th position. For instance, in
  912. * the string 'abcdef', the character at
  913. * position 0 is 'a', the
  914. * character at position 2 is
  915. * 'c', and so forth.
  916. * </p>
  917. * <p>
  918. * If start is given and is negative,
  919. * then strspn will begin
  920. * examining subject at
  921. * the start'th position from the end
  922. * of subject.
  923. * </p>
  924. * @param length int[optional] <p>
  925. * The length of the segment from subject
  926. * to examine.
  927. * </p>
  928. * <p>
  929. * If length is given and is non-negative,
  930. * then subject will be examined
  931. * for length characters after the starting
  932. * position.
  933. * </p>
  934. * <p>
  935. * If lengthis given and is negative,
  936. * then subject will be examined from the
  937. * starting position up to length
  938. * characters from the end of subject.
  939. * </p>
  940. * @return int the length of the initial segment of str1
  941. * which consists entirely of characters in str2.
  942. */
  943. function strspn ($subject, $mask, $start = null, $length = null) {}
  944. /**
  945. * Find length of initial segment not matching mask
  946. * @link http://www.php.net/manual/en/function.strcspn.php
  947. * @param str1 string <p>
  948. * The first string.
  949. * </p>
  950. * @param str2 string <p>
  951. * The second string.
  952. * </p>
  953. * @param start int[optional] <p>
  954. * The start position of the string to examine.
  955. * </p>
  956. * @param length int[optional] <p>
  957. * The length of the string to examine.
  958. * </p>
  959. * @return int the length of the segment as an integer.
  960. */
  961. function strcspn ($str1, $str2, $start = null, $length = null) {}
  962. /**
  963. * Tokenize string
  964. * @link http://www.php.net/manual/en/function.strtok.php
  965. * @param str string <p>
  966. * The string being split up into smaller strings (tokens).
  967. * </p>
  968. * @param token string <p>
  969. * The delimiter used when splitting up str.
  970. * </p>
  971. * @return string A string token.
  972. */
  973. function strtok ($str, $token) {}
  974. /**
  975. * Make a string uppercase
  976. * @link http://www.php.net/manual/en/function.strtoupper.php
  977. * @param string string <p>
  978. * The input string.
  979. * </p>
  980. * @return string the uppercased string.
  981. */
  982. function strtoupper ($string) {}
  983. /**
  984. * Make a string lowercase
  985. * @link http://www.php.net/manual/en/function.strtolower.php
  986. * @param str string <p>
  987. * The input string.
  988. * </p>
  989. * @return string the lowercased string.
  990. */
  991. function strtolower ($str) {}
  992. /**
  993. * Find position of first occurrence of a string
  994. * @link http://www.php.net/manual/en/function.strpos.php
  995. * @param haystack string <p>
  996. * The string to search in
  997. * </p>
  998. * @param needle mixed <p>
  999. * If needle is not a string, it is converted
  1000. * to an integer and applied as the ordinal value of a character.
  1001. * </p>
  1002. * @param offset int[optional] <p>
  1003. * The optional offset parameter allows you
  1004. * to specify which character in haystack to
  1005. * start searching. The position returned is still relative to the
  1006. * beginning of haystack.
  1007. * </p>
  1008. * @return int the position as an integer. If needle is
  1009. * not found, strpos will return boolean
  1010. * false.
  1011. */
  1012. function strpos ($haystack, $needle, $offset = null) {}
  1013. /**
  1014. * Find position of first occurrence of a case-insensitive string
  1015. * @link http://www.php.net/manual/en/function.stripos.php
  1016. * @param haystack string <p>
  1017. * The string to search in
  1018. * </p>
  1019. * @param needle string <p>
  1020. * Note that the needle may be a string of one or
  1021. * more characters.
  1022. * </p>
  1023. * <p>
  1024. * If needle is not a string, it is converted to
  1025. * an integer and applied as the ordinal value of a character.
  1026. * </p>
  1027. * @param offset int[optional] <p>
  1028. * The optional offset parameter allows you
  1029. * to specify which character in haystack to
  1030. * start searching. The position returned is still relative to the
  1031. * beginning of haystack.
  1032. * </p>
  1033. * @return int If needle is not found,
  1034. * stripos will return boolean false.
  1035. */
  1036. function stripos ($haystack, $needle, $offset = null) {}
  1037. /**
  1038. * Find position of last occurrence of a char in a string
  1039. * @link http://www.php.net/manual/en/function.strrpos.php
  1040. * @param haystack string <p>
  1041. * The string to search in.
  1042. * </p>
  1043. * @param needle string <p>
  1044. * If needle is not a string, it is converted
  1045. * to an integer and applied as the ordinal value of a character.
  1046. * </p>
  1047. * @param offset int[optional] <p>
  1048. * May be specified to begin searching an arbitrary number of characters into
  1049. * the string. Negative values will stop searching at an arbitrary point
  1050. * prior to the end of the string.
  1051. * </p>
  1052. * @return int the position where the needle exists. Returns false if the needle
  1053. * was not found.
  1054. */
  1055. function strrpos ($haystack, $needle, $offset = null) {}
  1056. /**
  1057. * Find position of last occurrence of a case-insensitive string in a string
  1058. * @link http://www.php.net/manual/en/function.strripos.php
  1059. * @param haystack string <p>
  1060. * The string to search in
  1061. * </p>
  1062. * @param needle string <p>
  1063. * Note that the needle may be a string of one or
  1064. * more characters.
  1065. * </p>
  1066. * @param offset int[optional] <p>
  1067. * The offset parameter may be specified to begin
  1068. * searching an arbitrary number of characters into the string.
  1069. * </p>
  1070. * <p>
  1071. * Negative offset values will start the search at
  1072. * offset characters from the
  1073. * start of the string.
  1074. * </p>
  1075. * @return int the numerical position of the last occurrence of
  1076. * needle. Also note that string positions start at 0,
  1077. * and not 1.
  1078. * </p>
  1079. * <p>
  1080. * If needle is not found, false is returned.
  1081. */
  1082. function strripos ($haystack, $needle, $offset = null) {}
  1083. /**
  1084. * Reverse a string
  1085. * @link http://www.php.net/manual/en/function.strrev.php
  1086. * @param string string <p>
  1087. * The string to be reversed.
  1088. * </p>
  1089. * @return string the reversed string.
  1090. */
  1091. function strrev ($string) {}
  1092. /**
  1093. * Convert logical Hebrew text to visual text
  1094. * @link http://www.php.net/manual/en/function.hebrev.php
  1095. * @param hebrew_text string <p>
  1096. * A Hebrew input string.
  1097. * </p>
  1098. * @param max_chars_per_line int[optional] <p>
  1099. * This optional parameter indicates maximum number of characters per
  1100. * line that will be returned.
  1101. * </p>
  1102. * @return string the visual string.
  1103. */
  1104. function hebrev ($hebrew_text, $max_chars_per_line = null) {}
  1105. /**
  1106. * Convert logical Hebrew text to visual text with newline conversion
  1107. * @link http://www.php.net/manual/en/function.hebrevc.php
  1108. * @param hebrew_text string <p>
  1109. * A Hebrew input string.
  1110. * </p>
  1111. * @param max_chars_per_line int[optional] <p>
  1112. * This optional parameter indicates maximum number of characters per
  1113. * line that will be returned.
  1114. * </p>
  1115. * @return string the visual string.
  1116. */
  1117. function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
  1118. /**
  1119. * Inserts HTML line breaks before all newlines in a string
  1120. * @link http://www.php.net/manual/en/function.nl2br.php
  1121. * @param string string <p>
  1122. * The input string.
  1123. * </p>
  1124. * @param is_xhtml bool[optional] <p>
  1125. * Whenever to use XHTML compatible line breaks or not.
  1126. * </p>
  1127. * @return string the altered string.
  1128. */
  1129. function nl2br ($string, $is_xhtml = null) {}
  1130. /**
  1131. * Returns filename component of path
  1132. * @link http://www.php.net/manual/en/function.basename.php
  1133. * @param path string <p>
  1134. * A path.
  1135. * </p>
  1136. * <p>
  1137. * On Windows, both slash (/) and backslash
  1138. * (\) are used as directory separator character. In
  1139. * other environments, it is the forward slash (/).
  1140. * </p>
  1141. * @param suffix string[optional] <p>
  1142. * If the filename ends in suffix this will also
  1143. * be cut off.
  1144. * </p>
  1145. * @return string the base name of the given path.
  1146. */
  1147. function basename ($path, $suffix = null) {}
  1148. /**
  1149. * Returns directory name component of path
  1150. * @link http://www.php.net/manual/en/function.dirname.php
  1151. * @param path string <p>
  1152. * A path.
  1153. * </p>
  1154. * <p>
  1155. * On Windows, both slash (/) and backslash
  1156. * (\) are used as directory separator character. In
  1157. * other environments, it is the forward slash (/).
  1158. * </p>
  1159. * @return string the name of the directory. If there are no slashes in
  1160. * path, a dot ('.') is returned,
  1161. * indicating the current directory. Otherwise, the returned string is
  1162. * path with any trailing
  1163. * /component removed.
  1164. */
  1165. function dirname ($path) {}
  1166. /**
  1167. * Returns information about a file path
  1168. * @link http://www.php.net/manual/en/function.pathinfo.php
  1169. * @param path string <p>
  1170. * The path being checked.
  1171. * </p>
  1172. * @param options int[optional] <p>
  1173. * You can specify which elements are returned with optional parameter
  1174. * options. It composes from
  1175. * PATHINFO_DIRNAME,
  1176. * PATHINFO_BASENAME,
  1177. * PATHINFO_EXTENSION and
  1178. * PATHINFO_FILENAME. It
  1179. * defaults to return all elements.
  1180. * </p>
  1181. * @return mixed The following associative array elements are returned:
  1182. * dirname, basename,
  1183. * extension (if any), and filename.
  1184. * </p>
  1185. * <p>
  1186. * If options is used, this function will return a
  1187. * string if not all elements are requested.
  1188. */
  1189. function pathinfo ($path, $options = null) {}
  1190. /**
  1191. * Un-quotes a quoted string
  1192. * @link http://www.php.net/manual/en/function.stripslashes.php
  1193. * @param str string <p>
  1194. * The input string.
  1195. * </p>
  1196. * @return string a string with backslashes stripped off.
  1197. * (\' becomes ' and so on.)
  1198. * Double backslashes (\\) are made into a single
  1199. * backslash (\).
  1200. */
  1201. function stripslashes ($str) {}
  1202. /**
  1203. * Un-quote string quoted with <function>addcslashes</function>
  1204. * @link http://www.php.net/manual/en/function.stripcslashes.php
  1205. * @param str string <p>
  1206. * The string to be unescaped.
  1207. * </p>
  1208. * @return string the unescaped string.
  1209. */
  1210. function stripcslashes ($str) {}
  1211. /**
  1212. * Find first occurrence of a string
  1213. * @link http://www.php.net/manual/en/function.strstr.php
  1214. * @param haystack string <p>
  1215. * The input string.
  1216. * </p>
  1217. * @param needle mixed <p>
  1218. * If needle is not a string, it is converted to
  1219. * an integer and applied as the ordinal value of a character.
  1220. * </p>
  1221. * @param before_needle bool[optional] <p>
  1222. * If true, strstr returns
  1223. * the part of the haystack before the first
  1224. * occurrence of the needle.
  1225. * </p>
  1226. * @return string the portion of string, or false if needle
  1227. * is not found.
  1228. */
  1229. function strstr ($haystack, $needle, $before_needle = null) {}
  1230. /**
  1231. * Case-insensitive <function>strstr</function>
  1232. * @link http://www.php.net/manual/en/function.stristr.php
  1233. * @param haystack string <p>
  1234. * The string to search in
  1235. * </p>
  1236. * @param needle mixed <p>
  1237. * If needle is not a string, it is converted to
  1238. * an integer and applied as the ordinal value of a character.
  1239. * </p>
  1240. * @param before_needle bool[optional] <p>
  1241. * If true, stristr
  1242. * returns the part of the haystack before the
  1243. * first occurrence of the needle.
  1244. * </p>
  1245. * @return string the matched substring. If needle is not
  1246. * found, returns false.
  1247. */
  1248. function stristr ($haystack, $needle, $before_needle = null) {}
  1249. /**
  1250. * Find the last occurrence of a character in a string
  1251. * @link http://www.php.net/manual/en/function.strrchr.php
  1252. * @param haystack string <p>
  1253. * The string to search in
  1254. * </p>
  1255. * @param needle mixed <p>
  1256. * If needle contains more than one character,
  1257. * only the first is used. This behavior is different from that of
  1258. * strstr.
  1259. * </p>
  1260. * <p>
  1261. * If needle is not a string, it is converted to
  1262. * an integer and applied as the ordinal value of a character.
  1263. * </p>
  1264. * @return string This function returns the portion of string, or false if
  1265. * needle is not found.
  1266. */
  1267. function strrchr ($haystack, $needle) {}
  1268. /**
  1269. * Randomly shuffles a string
  1270. * @link http://www.php.net/manual/en/function.str-shuffle.php
  1271. * @param str string <p>
  1272. * The input string.
  1273. * </p>
  1274. * @return string the shuffled string.
  1275. */
  1276. function str_shuffle ($str) {}
  1277. /**
  1278. * Return information about words used in a string
  1279. * @link http://www.php.net/manual/en/function.str-word-count.php
  1280. * @param string string <p>
  1281. * The string
  1282. * </p>
  1283. * @param format int[optional] <p>
  1284. * Specify the return value of this function. The current supported values
  1285. * are:
  1286. * 0 - returns the number of words found
  1287. * @param charlist string[optional] <p>
  1288. * A list of additional characters which will be considered as 'word'
  1289. * </p>
  1290. * @return mixed an array or an integer, depending on the
  1291. * format chosen.
  1292. */
  1293. function str_word_count ($string, $format = null, $charlist = null) {}
  1294. /**
  1295. * Convert a string to an array
  1296. * @link http://www.php.net/manual/en/function.str-split.php
  1297. * @param string string <p>
  1298. * The input string.
  1299. * </p>
  1300. * @param split_length int[optional] <p>
  1301. * Maximum length of the chunk.
  1302. * </p>
  1303. * @return array If the optional split_length parameter is
  1304. * specified, the returned array will be broken down into chunks with each
  1305. * being split_length in length, otherwise each chunk
  1306. * will be one character in length.
  1307. * </p>
  1308. * <p>
  1309. * false is returned if split_length is less than 1.
  1310. * If the split_length length exceeds the length of
  1311. * string, the entire string is returned as the first
  1312. * (and only) array element.
  1313. */
  1314. function str_split ($string, $split_length = null) {}
  1315. /**
  1316. * Search a string for any of a set of characters
  1317. * @link http://www.php.net/manual/en/function.strpbrk.php
  1318. * @param haystack string <p>
  1319. * The string where char_list is looked for.
  1320. * </p>
  1321. * @param char_list string <p>
  1322. * This parameter is case sensitive.
  1323. * </p>
  1324. * @return string a string starting from the character found, or false if it is
  1325. * not found.
  1326. */
  1327. function strpbrk ($haystack, $char_list) {}
  1328. /**
  1329. * Binary safe comparison of two strings from an offset, up to length characters
  1330. * @link http://www.php.net/manual/en/function.substr-compare.php
  1331. * @param main_str string <p>
  1332. * The main string being compared.
  1333. * </p>
  1334. * @param str string <p>
  1335. * The secondary string being compared.
  1336. * </p>
  1337. * @param offset int <p>
  1338. * The start position for the comparison. If negative, it starts counting
  1339. * from the end of the string.
  1340. * </p>
  1341. * @param length int[optional] <p>
  1342. * The length of the comparison. The default value is the largest of the
  1343. * length of the str compared to the length of
  1344. * main_str less the
  1345. * offset.
  1346. * </p>
  1347. * @param case_insensitivity bool[optional] <p>
  1348. * If case_insensitivity is true, comparison is
  1349. * case insensitive.
  1350. * </p>
  1351. * @return int &lt; 0 if main_str from position
  1352. * offset is less than str, &gt;
  1353. * 0 if it is greater than str, and 0 if they are equal.
  1354. * If offset is equal to or greater than the length of
  1355. * main_str or length is set and
  1356. * is less than 1, substr_compare prints a warning and returns
  1357. * false.
  1358. */
  1359. function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
  1360. /**
  1361. * Locale based string comparison
  1362. * @link http://www.php.net/manual/en/function.strcoll.php
  1363. * @param str1 string <p>
  1364. * The first string.
  1365. * </p>
  1366. * @param str2 string <p>
  1367. * The second string.
  1368. * </p>
  1369. * @return int &lt; 0 if str1 is less than
  1370. * str2; &gt; 0 if
  1371. * str1 is greater than
  1372. * str2, and 0 if they are equal.
  1373. */
  1374. function strcoll ($str1, $str2) {}
  1375. /**
  1376. * Formats a number as a currency string
  1377. * @link http://www.php.net/manual/en/function.money-format.php
  1378. * @param format string <p>
  1379. * The format specification consists of the following sequence:
  1380. * <p>a % character</p>
  1381. * @param number float <p>
  1382. * The number to be formatted.
  1383. * </p>
  1384. * @return string the formatted string. Characters before and after the formatting
  1385. * string will be returned unchanged.
  1386. * Non-numeric number causes returning &null; and
  1387. * emitting E_WARNING.
  1388. */
  1389. function money_format ($format, $number) {}
  1390. /**
  1391. * Return part of a string
  1392. * @link http://www.php.net/manual/en/function.substr.php
  1393. * @param string string <p>
  1394. * The input string.
  1395. * </p>
  1396. * @param start int <p>
  1397. * If start is non-negative, the returned string
  1398. * will start at the start'th position in
  1399. * string, counting from zero. For instance,
  1400. * in the string 'abcdef', the character at
  1401. * position 0 is 'a', the
  1402. * character at position 2 is
  1403. * 'c', and so forth.
  1404. * </p>
  1405. * <p>
  1406. * If start is negative, the returned string
  1407. * will start at the start'th character
  1408. * from the end of string.
  1409. * </p>
  1410. * <p>
  1411. * If string is less than or equal to
  1412. * start characters long, false will be returned.
  1413. * </p>
  1414. * <p>
  1415. * Example #1 Using a negative start
  1416. * </p>
  1417. * <pre>
  1418. * &lt;?php
  1419. * $rest = substr("abcdef", -1); // returns "f"
  1420. * $rest = substr("abcdef", -2); // returns "ef"
  1421. * $rest = substr("abcdef", -3, 1); // returns "d"
  1422. * ?&gt;
  1423. * </pre>
  1424. * @param length int[optional] <p>
  1425. * If length is given and is positive, the string
  1426. * returned will contain at most length characters
  1427. * beginning from start (depending on the length of
  1428. * string).
  1429. * </p>
  1430. * <p>
  1431. * If length is given and is negative, then that many
  1432. * characters will be omitted from the end of string
  1433. * (after the start position has been calculated when a
  1434. * start is negative). If
  1435. * start denotes a position beyond this truncation,
  1436. * an empty string will be returned.
  1437. * </p>
  1438. * <p>
  1439. * If length is given and is 0,
  1440. * false or &null; an empty string will be returned.
  1441. * </p>
  1442. * <p>
  1443. * Example #2 Using a negative length
  1444. * </p>
  1445. * <pre>
  1446. * &lt;?php
  1447. * $rest = substr("abcdef", 0, -1); // returns "abcde"
  1448. * $rest = substr("abcdef", 2, -1); // returns "cde"
  1449. * $rest = substr("abcdef", 4, -4); // returns false
  1450. * $rest = substr("abcdef", -3, -1); // returns "de"
  1451. * ?&gt;
  1452. * </pre>
  1453. * @return string the extracted part of string&return.falseforfailure;.
  1454. */
  1455. function substr ($string, $start, $length = null) {}
  1456. /**
  1457. * Replace text within a portion of a string
  1458. * @link http://www.php.net/manual/en/function.substr-replace.php
  1459. * @param string mixed <p>
  1460. * The input string.
  1461. * </p>
  1462. * @param replacement string <p>
  1463. * The replacement string.
  1464. * </p>
  1465. * @param start int <p>
  1466. * If start is positive, the replacing will
  1467. * begin at the start'th offset into
  1468. * string.
  1469. * </p>
  1470. * <p>
  1471. * If start is negative, the replacing will
  1472. * begin at the start'th character from the
  1473. * end of string.
  1474. * </p>
  1475. * @param length int[optional] <p>
  1476. * If given and is positive, it represents the length of the portion of
  1477. * string which is to be replaced. If it is
  1478. * negative, it represents the number of characters from the end of
  1479. * string at which to stop replacing. If it
  1480. * is not given, then it will default to strlen(
  1481. * string ); i.e. end the replacing at the
  1482. * end of string. Of course, if
  1483. * length is zero then this function will have the
  1484. * effect of inserting replacement into
  1485. * string at the given
  1486. * start offset.
  1487. * </p>
  1488. * @return mixed The result string is returned. If string is an
  1489. * array then array is returned.
  1490. */
  1491. function substr_replace ($string, $replacement, $start, $length = null) {}
  1492. /**
  1493. * Quote meta characters
  1494. * @link http://www.php.net/manual/en/function.quotemeta.php
  1495. * @param str string <p>
  1496. * The input string.
  1497. * </p>
  1498. * @return string the string with meta characters quoted.
  1499. */
  1500. function quotemeta ($str) {}
  1501. /**
  1502. * Make a string's first character uppercase
  1503. * @link http://www.php.net/manual/en/function.ucfirst.php
  1504. * @param str string <p>
  1505. * The input string.
  1506. * </p>
  1507. * @return string the resulting string.
  1508. */
  1509. function ucfirst ($str) {}
  1510. /**
  1511. * Make a string's first character lowercase
  1512. * @link http://www.php.net/manual/en/function.lcfirst.php
  1513. * @param str string <p>
  1514. * The input string.
  1515. * </p>
  1516. * @return string the resulting string.
  1517. */
  1518. function lcfirst ($str) {}
  1519. /**
  1520. * Uppercase the first character of each word in a string
  1521. * @link http://www.php.net/manual/en/function.ucwords.php
  1522. * @param str string <p>
  1523. * The input string.
  1524. * </p>
  1525. * @return string the modified string.
  1526. */
  1527. function ucwords ($str) {}
  1528. /**
  1529. * Translate certain characters
  1530. * @link http://www.php.net/manual/en/function.strtr.php
  1531. * @param str string <p>
  1532. * The string being translated.
  1533. * </p>
  1534. * @param from string <p>
  1535. * The string being translated to to.
  1536. * </p>
  1537. * @param to string <p>
  1538. * The string replacing from.
  1539. * </p>
  1540. * @return string This function returns a copy of str,
  1541. * translating all occurrences of each character in
  1542. * from to the corresponding character in
  1543. * to.
  1544. */
  1545. function strtr ($str, $from, $to) {}
  1546. /**
  1547. * Quote string with slashes
  1548. * @link http://www.php.net/manual/en/function.addslashes.php
  1549. * @param str string <p>
  1550. * The string to be escaped.
  1551. * </p>
  1552. * @return string the escaped string.
  1553. */
  1554. function addslashes ($str) {}
  1555. /**
  1556. * Quote string with slashes in a C style
  1557. * @link http://www.php.net/manual/en/function.addcslashes.php
  1558. * @param str string <p>
  1559. * The string to be escaped.
  1560. * </p>
  1561. * @param charlist string <p>
  1562. * A list of characters to be escaped. If
  1563. * charlist contains characters
  1564. * \n, \r etc., they are
  1565. * converted in C-like style, while other non-alphanumeric characters
  1566. * with ASCII codes lower than 32 and higher than 126 converted to
  1567. * octal representation.
  1568. * </p>
  1569. * <p>
  1570. * When you define a sequence of characters in the charlist argument
  1571. * make sure that you know what characters come between the
  1572. * characters that you set as the start and end of the range.
  1573. * <pre>
  1574. * &lt;?php
  1575. * echo addcslashes('foo[ ]', 'A..z');
  1576. * // output: \f\o\o\[ \]
  1577. * // All upper and lower-case letters will be escaped
  1578. * // ... but so will the [\]^_`
  1579. * ?&gt;
  1580. * </pre>
  1581. * Also, if the first character in a range has a higher ASCII value
  1582. * than the second character in the range, no range will be
  1583. * constructed. Only the start, end and period characters will be
  1584. * escaped. Use the ord function to find the
  1585. * ASCII value for a character.
  1586. * </p>
  1587. * <pre>
  1588. * &lt;?php
  1589. * echo addcslashes("zoo['.']", 'z..A');
  1590. * // output: \zoo['\.']
  1591. * ?&gt;
  1592. * </pre>
  1593. * <p>
  1594. * Be careful if you choose to escape characters 0, a, b, f, n, r,
  1595. * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
  1596. * and \v.
  1597. * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
  1598. * \v (vertical tab) and \t (tab) are predefined escape sequences,
  1599. * while in C all of these are predefined escape sequences.
  1600. * </p>
  1601. * @return string the escaped string.
  1602. */
  1603. function addcslashes ($str, $charlist) {}
  1604. /**
  1605. * Strip whitespace (or other characters) from the end of a string
  1606. * @link http://www.php.net/manual/en/function.rtrim.php
  1607. * @param str string <p>
  1608. * The input string.
  1609. * </p>
  1610. * @param charlist string[optional] <p>
  1611. * You can also specify the characters you want to strip, by means
  1612. * of the charlist parameter.
  1613. * Simply list all characters that you want to be stripped. With
  1614. * .. you can specify a range of characters.
  1615. * </p>
  1616. * @return string the modified string.
  1617. */
  1618. function rtrim ($str, $charlist = null) {}
  1619. /**
  1620. * Replace all occurrences of the search string with the replacement string
  1621. * @link http://www.php.net/manual/en/function.str-replace.php
  1622. * @param search mixed <p>
  1623. * The value being searched for, otherwise known as the needle.
  1624. * An array may be used to designate multiple needles.
  1625. * </p>
  1626. * @param replace mixed <p>
  1627. * The replacement value that replaces found search
  1628. * values. An array may be used to designate multiple replacements.
  1629. * </p>
  1630. * @param subject mixed <p>
  1631. * The string or array being searched and replaced on,
  1632. * otherwise known as the haystack.
  1633. * </p>
  1634. * <p>
  1635. * If subject is an array, then the search and
  1636. * replace is performed with every entry of
  1637. * subject, and the return value is an array as
  1638. * well.
  1639. * </p>
  1640. * @…

Large files files are truncated, but you can click here to view the full file