PageRenderTime 91ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 0ms

/www/.metadata/.plugins/org.eclipse.php.core/__language__/ea1b290a/standard.php

http://iprn.googlecode.com/
PHP | 2218 lines | 115 code | 114 blank | 1989 comment | 0 complexity | df22207fbe33cd3fa58d045760fe0378 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1, LGPL-2.0, Apache-2.0, MPL-2.0-no-copyleft-exception, GPL-3.0

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

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

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