PageRenderTime 61ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/ide/eclipse/jaggery/org.eclipse.php.core/Resources/language/php5.3/standard.php

https://github.com/blue666man/tools
PHP | 11255 lines | 865 code | 676 blank | 9714 comment | 0 complexity | 4d1813f557251982a602c1f767affcaf MD5 | raw file
Possible License(s): 0BSD

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. * getimagesize and MIME types
  488. * ]]>
  489. * </p>
  490. * <p>
  491. * channels will be 3 for RGB pictures and 4 for CMYK
  492. * pictures.
  493. * </p>
  494. * <p>
  495. * bits is the number of bits for each color.
  496. * </p>
  497. * <p>
  498. * For some image types, the presence of channels and
  499. * bits values can be a bit
  500. * confusing. As an example, GIF always uses 3 channels
  501. * per pixel, but the number of bits per pixel cannot be calculated for an
  502. * animated GIF with a global color table.
  503. * </p>
  504. * <p>
  505. * On failure, false is returned.
  506. */
  507. function getimagesize ($filename, array &$imageinfo = null) {}
  508. /**
  509. * Get Mime-Type for image-type returned by getimagesize,
  510. exif_read_data, exif_thumbnail, exif_imagetype
  511. * @link http://www.php.net/manual/en/function.image-type-to-mime-type.php
  512. * @param imagetype int <p>
  513. * One of the IMAGETYPE_XXX constants.
  514. * </p>
  515. * @return string The returned values are as follows
  516. * <table>
  517. * Returned values Constants
  518. * <tr valign="top">
  519. * <td>imagetype</td>
  520. * <td>Returned value</td>
  521. * </tr>
  522. * <tr valign="top">
  523. * <td>IMAGETYPE_GIF</td>
  524. * <td>image/gif</td>
  525. * </tr>
  526. * <tr valign="top">
  527. * <td>IMAGETYPE_JPEG</td>
  528. * <td>image/jpeg</td>
  529. * </tr>
  530. * <tr valign="top">
  531. * <td>IMAGETYPE_PNG</td>
  532. * <td>image/png</td>
  533. * </tr>
  534. * <tr valign="top">
  535. * <td>IMAGETYPE_SWF</td>
  536. * <td>application/x-shockwave-flash</td>
  537. * </tr>
  538. * <tr valign="top">
  539. * <td>IMAGETYPE_PSD</td>
  540. * <td>image/psd</td>
  541. * </tr>
  542. * <tr valign="top">
  543. * <td>IMAGETYPE_BMP</td>
  544. * <td>image/bmp</td>
  545. * </tr>
  546. * <tr valign="top">
  547. * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
  548. * <td>image/tiff</td>
  549. * </tr>
  550. * <tr valign="top">
  551. * <td>
  552. * IMAGETYPE_TIFF_MM (motorola byte order)
  553. * </td>
  554. * <td>image/tiff</td>
  555. * </tr>
  556. * <tr valign="top">
  557. * <td>IMAGETYPE_JPC</td>
  558. * <td>application/octet-stream</td>
  559. * </tr>
  560. * <tr valign="top">
  561. * <td>IMAGETYPE_JP2</td>
  562. * <td>image/jp2</td>
  563. * </tr>
  564. * <tr valign="top">
  565. * <td>IMAGETYPE_JPX</td>
  566. * <td>application/octet-stream</td>
  567. * </tr>
  568. * <tr valign="top">
  569. * <td>IMAGETYPE_JB2</td>
  570. * <td>application/octet-stream</td>
  571. * </tr>
  572. * <tr valign="top">
  573. * <td>IMAGETYPE_SWC</td>
  574. * <td>application/x-shockwave-flash</td>
  575. * </tr>
  576. * <tr valign="top">
  577. * <td>IMAGETYPE_IFF</td>
  578. * <td>image/iff</td>
  579. * </tr>
  580. * <tr valign="top">
  581. * <td>IMAGETYPE_WBMP</td>
  582. * <td>image/vnd.wap.wbmp</td>
  583. * </tr>
  584. * <tr valign="top">
  585. * <td>IMAGETYPE_XBM</td>
  586. * <td>image/xbm</td>
  587. * </tr>
  588. * <tr valign="top">
  589. * <td>IMAGETYPE_ICO</td>
  590. * <td>image/vnd.microsoft.icon</td>
  591. * </tr>
  592. * </table>
  593. */
  594. function image_type_to_mime_type ($imagetype) {}
  595. /**
  596. * Get file extension for image type
  597. * @link http://www.php.net/manual/en/function.image-type-to-extension.php
  598. * @param imagetype int <p>
  599. * One of the IMAGETYPE_XXX constant.
  600. * </p>
  601. * @param include_dot bool[optional] <p>
  602. * Whether to prepend a dot to the extension or not. Default to true.
  603. * </p>
  604. * @return string A string with the extension corresponding to the given image type.
  605. */
  606. function image_type_to_extension ($imagetype, $include_dot = null) {}
  607. /**
  608. * Outputs information about PHP's configuration
  609. * @link http://www.php.net/manual/en/function.phpinfo.php
  610. * @param what int[optional] <p>
  611. * The output may be customized by passing one or more of the
  612. * following constants bitwise values summed
  613. * together in the optional what parameter.
  614. * One can also combine the respective constants or bitwise values
  615. * together with the or operator.
  616. * </p>
  617. * <p>
  618. * <table>
  619. * phpinfo options
  620. * <tr valign="top">
  621. * <td>Name (constant)</td>
  622. * <td>Value</td>
  623. * <td>Description</td>
  624. * </tr>
  625. * <tr valign="top">
  626. * <td>INFO_GENERAL</td>
  627. * <td>1</td>
  628. * <td>
  629. * The configuration line, &php.ini; location, build date, Web
  630. * Server, System and more.
  631. * </td>
  632. * </tr>
  633. * <tr valign="top">
  634. * <td>INFO_CREDITS</td>
  635. * <td>2</td>
  636. * <td>
  637. * PHP Credits. See also phpcredits.
  638. * </td>
  639. * </tr>
  640. * <tr valign="top">
  641. * <td>INFO_CONFIGURATION</td>
  642. * <td>4</td>
  643. * <td>
  644. * Current Local and Master values for PHP directives. See
  645. * also ini_get.
  646. * </td>
  647. * </tr>
  648. * <tr valign="top">
  649. * <td>INFO_MODULES</td>
  650. * <td>8</td>
  651. * <td>
  652. * Loaded modules and their respective settings. See also
  653. * get_loaded_extensions.
  654. * </td>
  655. * </tr>
  656. * <tr valign="top">
  657. * <td>INFO_ENVIRONMENT</td>
  658. * <td>16</td>
  659. * <td>
  660. * Environment Variable information that's also available in
  661. * $_ENV.
  662. * </td>
  663. * </tr>
  664. * <tr valign="top">
  665. * <td>INFO_VARIABLES</td>
  666. * <td>32</td>
  667. * <td>
  668. * Shows all
  669. * predefined variables from EGPCS (Environment, GET,
  670. * POST, Cookie, Server).
  671. * </td>
  672. * </tr>
  673. * <tr valign="top">
  674. * <td>INFO_LICENSE</td>
  675. * <td>64</td>
  676. * <td>
  677. * PHP License information. See also the license FAQ.
  678. * </td>
  679. * </tr>
  680. * <tr valign="top">
  681. * <td>INFO_ALL</td>
  682. * <td>-1</td>
  683. * <td>
  684. * Shows all of the above.
  685. * </td>
  686. * </tr>
  687. * </table>
  688. * </p>
  689. * @return bool Returns true on success or false on failure.
  690. */
  691. function phpinfo ($what = null) {}
  692. /**
  693. * Gets the current PHP version
  694. * @link http://www.php.net/manual/en/function.phpversion.php
  695. * @param extension string[optional] <p>
  696. * An optional extension name.
  697. * </p>
  698. * @return string If the optional extension parameter is
  699. * specified, phpversion returns the version of that
  700. * extension, or false if there is no version information associated or
  701. * the extension isn't enabled.
  702. */
  703. function phpversion ($extension = null) {}
  704. /**
  705. * Prints out the credits for PHP
  706. * @link http://www.php.net/manual/en/function.phpcredits.php
  707. * @param flag int[optional] <p>
  708. * To generate a custom credits page, you may want to use the
  709. * flag parameter.
  710. * </p>
  711. * <p>
  712. * <table>
  713. * Pre-defined phpcredits flags
  714. * <tr valign="top">
  715. * <td>name</td>
  716. * <td>description</td>
  717. * </tr>
  718. * <tr valign="top">
  719. * <td>CREDITS_ALL</td>
  720. * <td>
  721. * All the credits, equivalent to using: CREDITS_DOCS +
  722. * CREDITS_GENERAL + CREDITS_GROUP +
  723. * CREDITS_MODULES + CREDITS_FULLPAGE.
  724. * It generates a complete stand-alone HTML page with the appropriate tags.
  725. * </td>
  726. * </tr>
  727. * <tr valign="top">
  728. * <td>CREDITS_DOCS</td>
  729. * <td>The credits for the documentation team</td>
  730. * </tr>
  731. * <tr valign="top">
  732. * <td>CREDITS_FULLPAGE</td>
  733. * <td>
  734. * Usually used in combination with the other flags. Indicates
  735. * that a complete stand-alone HTML page needs to be
  736. * printed including the information indicated by the other
  737. * flags.
  738. * </td>
  739. * </tr>
  740. * <tr valign="top">
  741. * <td>CREDITS_GENERAL</td>
  742. * <td>
  743. * General credits: Language design and concept, PHP authors
  744. * and SAPI module.
  745. * </td>
  746. * </tr>
  747. * <tr valign="top">
  748. * <td>CREDITS_GROUP</td>
  749. * <td>A list of the core developers</td>
  750. * </tr>
  751. * <tr valign="top">
  752. * <td>CREDITS_MODULES</td>
  753. * <td>
  754. * A list of the extension modules for PHP, and their authors
  755. * </td>
  756. * </tr>
  757. * <tr valign="top">
  758. * <td>CREDITS_SAPI</td>
  759. * <td>
  760. * A list of the server API modules for PHP, and their authors
  761. * </td>
  762. * </tr>
  763. * </table>
  764. * </p>
  765. * @return bool Returns true on success or false on failure.
  766. */
  767. function phpcredits ($flag = null) {}
  768. /**
  769. * Gets the logo guid
  770. * @link http://www.php.net/manual/en/function.php-logo-guid.php
  771. * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
  772. */
  773. function php_logo_guid () {}
  774. function php_real_logo_guid () {}
  775. function php_egg_logo_guid () {}
  776. /**
  777. * Gets the Zend guid
  778. * @link http://www.php.net/manual/en/function.zend-logo-guid.php
  779. * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
  780. */
  781. function zend_logo_guid () {}
  782. /**
  783. * Returns the type of interface between web server and PHP
  784. * @link http://www.php.net/manual/en/function.php-sapi-name.php
  785. * @return string the interface type, as a lowercase string.
  786. * </p>
  787. * <p>
  788. * Although not exhaustive, the possible return values include
  789. * aolserver, apache,
  790. * apache2filter, apache2handler,
  791. * caudium, cgi (until PHP 5.3),
  792. * cgi-fcgi, cli,
  793. * continuity, embed,
  794. * isapi, litespeed,
  795. * milter, nsapi,
  796. * phttpd, pi3web, roxen,
  797. * thttpd, tux, and webjames.
  798. */
  799. function php_sapi_name () {}
  800. /**
  801. * Returns information about the operating system PHP is running on
  802. * @link http://www.php.net/manual/en/function.php-uname.php
  803. * @param mode string[optional] <p>
  804. * mode is a single character that defines what
  805. * information is returned:
  806. * 'a': This is the default. Contains all modes in
  807. * the sequence "s n r v m".
  808. * @return string the description, as a string.
  809. */
  810. function php_uname ($mode = null) {}
  811. /**
  812. * Return a list of .ini files parsed from the additional ini dir
  813. * @link http://www.php.net/manual/en/function.php-ini-scanned-files.php
  814. * @return string a comma-separated string of .ini files on success. Each comma is
  815. * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
  816. * false is returned. If it was set and the directory was empty, an
  817. * empty string is returned. If a file is unrecognizable, the file will
  818. * still make it into the returned string but a PHP error will also result.
  819. * This PHP error will be seen both at compile time and while using
  820. * php_ini_scanned_files.
  821. */
  822. function php_ini_scanned_files () {}
  823. /**
  824. * Retrieve a path to the loaded php.ini file
  825. * @link http://www.php.net/manual/en/function.php-ini-loaded-file.php
  826. * @return string The loaded &php.ini; path, or false if one is not loaded.
  827. */
  828. function php_ini_loaded_file () {}
  829. /**
  830. * String comparisons using a "natural order" algorithm
  831. * @link http://www.php.net/manual/en/function.strnatcmp.php
  832. * @param str1 string <p>
  833. * The first string.
  834. * </p>
  835. * @param str2 string <p>
  836. * The second string.
  837. * </p>
  838. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  839. * str1 is less than str2; &gt;
  840. * 0 if str1 is greater than
  841. * str2, and 0 if they are equal.
  842. */
  843. function strnatcmp ($str1, $str2) {}
  844. /**
  845. * Case insensitive string comparisons using a "natural order" algorithm
  846. * @link http://www.php.net/manual/en/function.strnatcasecmp.php
  847. * @param str1 string <p>
  848. * The first string.
  849. * </p>
  850. * @param str2 string <p>
  851. * The second string.
  852. * </p>
  853. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  854. * str1 is less than str2 &gt;
  855. * 0 if str1 is greater than
  856. * str2, and 0 if they are equal.
  857. */
  858. function strnatcasecmp ($str1, $str2) {}
  859. /**
  860. * Count the number of substring occurrences
  861. * @link http://www.php.net/manual/en/function.substr-count.php
  862. * @param haystack string <p>
  863. * The string to search in
  864. * </p>
  865. * @param needle string <p>
  866. * The substring to search for
  867. * </p>
  868. * @param offset int[optional] <p>
  869. * The offset where to start counting
  870. * </p>
  871. * @param length int[optional] <p>
  872. * The maximum length after the specified offset to search for the
  873. * substring. It outputs a warning if the offset plus the length is
  874. * greater than the haystack length.
  875. * </p>
  876. * @return int This functions returns an integer.
  877. */
  878. function substr_count ($haystack, $needle, $offset = null, $length = null) {}
  879. /**
  880. * Finds the length of the first segment of a string consisting
  881. entirely of characters contained within a given mask.
  882. * @link http://www.php.net/manual/en/function.strspn.php
  883. * @param subject string <p>
  884. * The string to examine.
  885. * </p>
  886. * @param mask string <p>
  887. * The list of allowable characters to include in counted segments.
  888. * </p>
  889. * @param start int[optional] <p>
  890. * The position in subject to
  891. * start searching.
  892. * </p>
  893. * <p>
  894. * If start is given and is non-negative,
  895. * then strspn will begin
  896. * examining subject at
  897. * the start'th position. For instance, in
  898. * the string 'abcdef', the character at
  899. * position 0 is 'a', the
  900. * character at position 2 is
  901. * 'c', and so forth.
  902. * </p>
  903. * <p>
  904. * If start is given and is negative,
  905. * then strspn will begin
  906. * examining subject at
  907. * the start'th position from the end
  908. * of subject.
  909. * </p>
  910. * @param length int[optional] <p>
  911. * The length of the segment from subject
  912. * to examine.
  913. * </p>
  914. * <p>
  915. * If length is given and is non-negative,
  916. * then subject will be examined
  917. * for length characters after the starting
  918. * position.
  919. * </p>
  920. * <p>
  921. * If lengthis given and is negative,
  922. * then subject will be examined from the
  923. * starting position up to length
  924. * characters from the end of subject.
  925. * </p>
  926. * @return int the length of the initial segment of str1
  927. * which consists entirely of characters in str2.
  928. */
  929. function strspn ($subject, $mask, $start = null, $length = null) {}
  930. /**
  931. * Find length of initial segment not matching mask
  932. * @link http://www.php.net/manual/en/function.strcspn.php
  933. * @param str1 string <p>
  934. * The first string.
  935. * </p>
  936. * @param str2 string <p>
  937. * The second string.
  938. * </p>
  939. * @param start int[optional] <p>
  940. * The start position of the string to examine.
  941. * </p>
  942. * @param length int[optional] <p>
  943. * The length of the string to examine.
  944. * </p>
  945. * @return int the length of the segment as an integer.
  946. */
  947. function strcspn ($str1, $str2, $start = null, $length = null) {}
  948. /**
  949. * Tokenize string
  950. * @link http://www.php.net/manual/en/function.strtok.php
  951. * @param str string <p>
  952. * The string being split up into smaller strings (tokens).
  953. * </p>
  954. * @param token string <p>
  955. * The delimiter used when splitting up str.
  956. * </p>
  957. * @return string A string token.
  958. */
  959. function strtok ($str, $token) {}
  960. /**
  961. * Make a string uppercase
  962. * @link http://www.php.net/manual/en/function.strtoupper.php
  963. * @param string string <p>
  964. * The input string.
  965. * </p>
  966. * @return string the uppercased string.
  967. */
  968. function strtoupper ($string) {}
  969. /**
  970. * Make a string lowercase
  971. * @link http://www.php.net/manual/en/function.strtolower.php
  972. * @param str string <p>
  973. * The input string.
  974. * </p>
  975. * @return string the lowercased string.
  976. */
  977. function strtolower ($str) {}
  978. /**
  979. * Find position of first occurrence of a string
  980. * @link http://www.php.net/manual/en/function.strpos.php
  981. * @param haystack string <p>
  982. * The string to search in
  983. * </p>
  984. * @param needle mixed <p>
  985. * If needle is not a string, it is converted
  986. * to an integer and applied as the ordinal value of a character.
  987. * </p>
  988. * @param offset int[optional] <p>
  989. * The optional offset parameter allows you
  990. * to specify which character in haystack to
  991. * start searching. The position returned is still relative to the
  992. * beginning of haystack.
  993. * </p>
  994. * @return int the position as an integer. If needle is
  995. * not found, strpos will return boolean
  996. * false.
  997. */
  998. function strpos ($haystack, $needle, $offset = null) {}
  999. /**
  1000. * Find position of first occurrence of a case-insensitive string
  1001. * @link http://www.php.net/manual/en/function.stripos.php
  1002. * @param haystack string <p>
  1003. * The string to search in
  1004. * </p>
  1005. * @param needle string <p>
  1006. * Note that the needle may be a string of one or
  1007. * more characters.
  1008. * </p>
  1009. * <p>
  1010. * If needle is not a string, it is converted to
  1011. * an integer and applied as the ordinal value of a character.
  1012. * </p>
  1013. * @param offset int[optional] <p>
  1014. * The optional offset parameter allows you
  1015. * to specify which character in haystack to
  1016. * start searching. The position returned is still relative to the
  1017. * beginning of haystack.
  1018. * </p>
  1019. * @return int If needle is not found,
  1020. * stripos will return boolean false.
  1021. */
  1022. function stripos ($haystack, $needle, $offset = null) {}
  1023. /**
  1024. * Find position of last occurrence of a char in a string
  1025. * @link http://www.php.net/manual/en/function.strrpos.php
  1026. * @param haystack string <p>
  1027. * The string to search in.
  1028. * </p>
  1029. * @param needle string <p>
  1030. * If needle is not a string, it is converted
  1031. * to an integer and applied as the ordinal value of a character.
  1032. * </p>
  1033. * @param offset int[optional] <p>
  1034. * May be specified to begin searching an arbitrary number of characters into
  1035. * the string. Negative values will stop searching at an arbitrary point
  1036. * prior to the end of the string.
  1037. * </p>
  1038. * @return int the position where the needle exists. Returns false if the needle
  1039. * was not found.
  1040. */
  1041. function strrpos ($haystack, $needle, $offset = null) {}
  1042. /**
  1043. * Find position of last occurrence of a case-insensitive string in a string
  1044. * @link http://www.php.net/manual/en/function.strripos.php
  1045. * @param haystack string <p>
  1046. * The string to search in
  1047. * </p>
  1048. * @param needle string <p>
  1049. * Note that the needle may be a string of one or
  1050. * more characters.
  1051. * </p>
  1052. * @param offset int[optional] <p>
  1053. * The offset parameter may be specified to begin
  1054. * searching an arbitrary number of characters into the string.
  1055. * </p>
  1056. * <p>
  1057. * Negative offset values will start the search at
  1058. * offset characters from the
  1059. * start of the string.
  1060. * </p>
  1061. * @return int the numerical position of the last occurrence of
  1062. * needle. Also note that string positions start at 0,
  1063. * and not 1.
  1064. * </p>
  1065. * <p>
  1066. * If needle is not found, false is returned.
  1067. */
  1068. function strripos ($haystack, $needle, $offset = null) {}
  1069. /**
  1070. * Reverse a string
  1071. * @link http://www.php.net/manual/en/function.strrev.php
  1072. * @param string string <p>
  1073. * The string to be reversed.
  1074. * </p>
  1075. * @return string the reversed string.
  1076. */
  1077. function strrev ($string) {}
  1078. /**
  1079. * Convert logical Hebrew text to visual text
  1080. * @link http://www.php.net/manual/en/function.hebrev.php
  1081. * @param hebrew_text string <p>
  1082. * A Hebrew input string.
  1083. * </p>
  1084. * @param max_chars_per_line int[optional] <p>
  1085. * This optional parameter indicates maximum number of characters per
  1086. * line that will be returned.
  1087. * </p>
  1088. * @return string the visual string.
  1089. */
  1090. function hebrev ($hebrew_text, $max_chars_per_line = null) {}
  1091. /**
  1092. * Convert logical Hebrew text to visual text with newline conversion
  1093. * @link http://www.php.net/manual/en/function.hebrevc.php
  1094. * @param hebrew_text string <p>
  1095. * A Hebrew input string.
  1096. * </p>
  1097. * @param max_chars_per_line int[optional] <p>
  1098. * This optional parameter indicates maximum number of characters per
  1099. * line that will be returned.
  1100. * </p>
  1101. * @return string the visual string.
  1102. */
  1103. function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
  1104. /**
  1105. * Inserts HTML line breaks before all newlines in a string
  1106. * @link http://www.php.net/manual/en/function.nl2br.php
  1107. * @param string string <p>
  1108. * The input string.
  1109. * </p>
  1110. * @param is_xhtml bool[optional] <p>
  1111. * Whenever to use XHTML compatible line breaks or not.
  1112. * </p>
  1113. * @return string the altered string.
  1114. */
  1115. function nl2br ($string, $is_xhtml = null) {}
  1116. /**
  1117. * Returns filename component of path
  1118. * @link http://www.php.net/manual/en/function.basename.php
  1119. * @param path string <p>
  1120. * A path.
  1121. * </p>
  1122. * <p>
  1123. * On Windows, both slash (/) and backslash
  1124. * (\) are used as directory separator character. In
  1125. * other environments, it is the forward slash (/).
  1126. * </p>
  1127. * @param suffix string[optional] <p>
  1128. * If the filename ends in suffix this will also
  1129. * be cut off.
  1130. * </p>
  1131. * @return string the base name of the given path.
  1132. */
  1133. function basename ($path, $suffix = null) {}
  1134. /**
  1135. * Returns directory name component of path
  1136. * @link http://www.php.net/manual/en/function.dirname.php
  1137. * @param path string <p>
  1138. * A path.
  1139. * </p>
  1140. * <p>
  1141. * On Windows, both slash (/) and backslash
  1142. * (\) are used as directory separator character. In
  1143. * other environments, it is the forward slash (/).
  1144. * </p>
  1145. * @return string the name of the directory. If there are no slashes in
  1146. * path, a dot ('.') is returned,
  1147. * indicating the current directory. Otherwise, the returned string is
  1148. * path with any trailing
  1149. * /component removed.
  1150. */
  1151. function dirname ($path) {}
  1152. /**
  1153. * Returns information about a file path
  1154. * @link http://www.php.net/manual/en/function.pathinfo.php
  1155. * @param path string <p>
  1156. * The path being checked.
  1157. * </p>
  1158. * @param options int[optional] <p>
  1159. * You can specify which elements are returned with optional parameter
  1160. * options. It composes from
  1161. * PATHINFO_DIRNAME,
  1162. * PATHINFO_BASENAME,
  1163. * PATHINFO_EXTENSION and
  1164. * PATHINFO_FILENAME. It
  1165. * defaults to return all elements.
  1166. * </p>
  1167. * @return mixed The following associative array elements are returned:
  1168. * dirname, basename,
  1169. * extension (if any), and filename.
  1170. * </p>
  1171. * <p>
  1172. * If options is used, this function will return a
  1173. * string if not all elements are requested.
  1174. */
  1175. function pathinfo ($path, $options = null) {}
  1176. /**
  1177. * Un-quotes a quoted string
  1178. * @link http://www.php.net/manual/en/function.stripslashes.php
  1179. * @param str string <p>
  1180. * The input string.
  1181. * </p>
  1182. * @return string a string with backslashes stripped off.
  1183. * (\' becomes ' and so on.)
  1184. * Double backslashes (\\) are made into a single
  1185. * backslash (\).
  1186. */
  1187. function stripslashes ($str) {}
  1188. /**
  1189. * Un-quote string quoted with <function>addcslashes</function>
  1190. * @link http://www.php.net/manual/en/function.stripcslashes.php
  1191. * @param str string <p>
  1192. * The string to be unescaped.
  1193. * </p>
  1194. * @return string the unescaped string.
  1195. */
  1196. function stripcslashes ($str) {}
  1197. /**
  1198. * Find first occurrence of a string
  1199. * @link http://www.php.net/manual/en/function.strstr.php
  1200. * @param haystack string <p>
  1201. * The input string.
  1202. * </p>
  1203. * @param needle mixed <p>
  1204. * If needle is not a string, it is converted to
  1205. * an integer and applied as the ordinal value of a character.
  1206. * </p>
  1207. * @param before_needle bool[optional] <p>
  1208. * If true, strstr returns
  1209. * the part of the haystack before the first
  1210. * occurrence of the needle.
  1211. * </p>
  1212. * @return string the portion of string, or false if needle
  1213. * is not found.
  1214. */
  1215. function strstr ($haystack, $needle, $before_needle = null) {}
  1216. /**
  1217. * Case-insensitive <function>strstr</function>
  1218. * @link http://www.php.net/manual/en/function.stristr.php
  1219. * @param haystack string <p>
  1220. * The string to search in
  1221. * </p>
  1222. * @param needle mixed <p>
  1223. * If needle is not a string, it is converted to
  1224. * an integer and applied as the ordinal value of a character.
  1225. * </p>
  1226. * @param before_needle bool[optional] <p>
  1227. * If true, stristr
  1228. * returns the part of the haystack before the
  1229. * first occurrence of the needle.
  1230. * </p>
  1231. * @return string the matched substring. If needle is not
  1232. * found, returns false.
  1233. */
  1234. function stristr ($haystack, $needle, $before_needle = null) {}
  1235. /**
  1236. * Find the last occurrence of a character in a string
  1237. * @link http://www.php.net/manual/en/function.strrchr.php
  1238. * @param haystack string <p>
  1239. * The string to search in
  1240. * </p>
  1241. * @param needle mixed <p>
  1242. * If needle contains more than one character,
  1243. * only the first is used. This behavior is different from that of
  1244. * strstr.
  1245. * </p>
  1246. * <p>
  1247. * If needle is not a string, it is converted to
  1248. * an integer and applied as the ordinal value of a character.
  1249. * </p>
  1250. * @return string This function returns the portion of string, or false if
  1251. * needle is not found.
  1252. */
  1253. function strrchr ($haystack, $needle) {}
  1254. /**
  1255. * Randomly shuffles a string
  1256. * @link http://www.php.net/manual/en/function.str-shuffle.php
  1257. * @param str string <p>
  1258. * The input string.
  1259. * </p>
  1260. * @return string the shuffled string.
  1261. */
  1262. function str_shuffle ($str) {}
  1263. /**
  1264. * Return information about words used in a string
  1265. * @link http://www.php.net/manual/en/function.str-word-count.php
  1266. * @param string string <p>
  1267. * The string
  1268. * </p>
  1269. * @param format int[optional] <p>
  1270. * Specify the return value of this function. The current supported values
  1271. * are:
  1272. * 0 - returns the number of words found
  1273. * @param charlist string[optional] <p>
  1274. * A list of additional characters which will be considered as 'word'
  1275. * </p>
  1276. * @return mixed an array or an integer, depending on the
  1277. * format chosen.
  1278. */
  1279. function str_word_count ($string, $format = null, $charlist = null) {}
  1280. /**
  1281. * Convert a string to an array
  1282. * @link http://www.php.net/manual/en/function.str-split.php
  1283. * @param string string <p>
  1284. * The input string.
  1285. * </p>
  1286. * @param split_length int[optional] <p>
  1287. * Maximum length of the chunk.
  1288. * </p>
  1289. * @return array If the optional split_length parameter is
  1290. * specified, the returned array will be broken down into chunks with each
  1291. * being split_length in length, otherwise each chunk
  1292. * will be one character in length.
  1293. * </p>
  1294. * <p>
  1295. * false is returned if split_length is less than 1.
  1296. * If the split_length length exceeds the length of
  1297. * string, the entire string is returned as the first
  1298. * (and only) array element.
  1299. */
  1300. function str_split ($string, $split_length = null) {}
  1301. /**
  1302. * Search a string for any of a set of characters
  1303. * @link http://www.php.net/manual/en/function.strpbrk.php
  1304. * @param haystack string <p>
  1305. * The string where char_list is looked for.
  1306. * </p>
  1307. * @param char_list string <p>
  1308. * This parameter is case sensitive.
  1309. * </p>
  1310. * @return string a string starting from the character found, or false if it is
  1311. * not found.
  1312. */
  1313. function strpbrk ($haystack, $char_list) {}
  1314. /**
  1315. * Binary safe comparison of two strings from an offset, up to length characters
  1316. * @link http://www.php.net/manual/en/function.substr-compare.php
  1317. * @param main_str string <p>
  1318. * The main string being compared.
  1319. * </p>
  1320. * @param str string <p>
  1321. * The secondary string being compared.
  1322. * </p>
  1323. * @param offset int <p>
  1324. * The start position for the comparison. If negative, it starts counting
  1325. * from the end of the string.
  1326. * </p>
  1327. * @param length int[optional] <p>
  1328. * The length of the comparison. The default value is the largest of the
  1329. * length of the str compared to the length of
  1330. * main_str less the
  1331. * offset.
  1332. * </p>
  1333. * @param case_insensitivity bool[optional] <p>
  1334. * If case_insensitivity is true, comparison is
  1335. * case insensitive.
  1336. * </p>
  1337. * @return int &lt; 0 if main_str from position
  1338. * offset is less than str, &gt;
  1339. * 0 if it is greater than str, and 0 if they are equal.
  1340. * If offset is equal to or greater than the length of
  1341. * main_str or length is set and
  1342. * is less than 1, substr_compare prints a warning and returns
  1343. * false.
  1344. */
  1345. function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
  1346. /**
  1347. * Locale based string comparison
  1348. * @link http://www.php.net/manual/en/function.strcoll.php
  1349. * @param str1 string <p>
  1350. * The first string.
  1351. * </p>
  1352. * @param str2 string <p>
  1353. * The second string.
  1354. * </p>
  1355. * @return int &lt; 0 if str1 is less than
  1356. * str2; &gt; 0 if
  1357. * str1 is greater than
  1358. * str2, and 0 if they are equal.
  1359. */
  1360. function strcoll ($str1, $str2) {}
  1361. /**
  1362. * Formats a number as a currency string
  1363. * @link http://www.php.net/manual/en/function.money-format.php
  1364. * @param format string <p>
  1365. * The format specification consists of the following sequence:
  1366. * <p>a % character</p>
  1367. * @param number float <p>
  1368. * The number to be formatted.
  1369. * </p>
  1370. * @return string the formatted string. Characters before and after the formatting
  1371. * string will be returned unchanged.
  1372. * Non-numeric number causes returning &null; and
  1373. * emitting E_WARNING.
  1374. */
  1375. function money_format ($format, $number) {}
  1376. /**
  1377. * Return part of a string
  1378. * @link http://www.php.net/manual/en/function.substr.php
  1379. * @param string string <p>
  1380. * The input string.
  1381. * </p>
  1382. * @param start int <p>
  1383. * If start is non-negative, the returned string
  1384. * will start at the start'th position in
  1385. * string, counting from zero. For instance,
  1386. * in the string 'abcdef', the character at
  1387. * position 0 is 'a', the
  1388. * character at position 2 is
  1389. * 'c', and so forth.
  1390. * </p>
  1391. * <p>
  1392. * If start is negative, the returned string
  1393. * will start at the start'th character
  1394. * from the end of string.
  1395. * </p>
  1396. * <p>
  1397. * If string is less than or equal to
  1398. * start characters long, false will be returned.
  1399. * </p>
  1400. * <p>
  1401. * Using a negative start
  1402. * ]]>
  1403. * </p>
  1404. * @param length int[optional] <p>
  1405. * If length is given and is positive, the string
  1406. * returned will contain at most length characters
  1407. * beginning from start (depending on the length of
  1408. * string).
  1409. * </p>
  1410. * <p>
  1411. * If length is given and is negative, then that many
  1412. * characters will be omitted from the end of string
  1413. * (after the start position has been calculated when a
  1414. * start is negative). If
  1415. * start denotes a position beyond this truncation,
  1416. * an empty string will be returned.
  1417. * </p>
  1418. * <p>
  1419. * If length is given and is 0,
  1420. * false or &null; an empty string will be returned.
  1421. * </p>
  1422. * Using a negative length
  1423. * ]]>
  1424. * @return string the extracted part of string&return.falseforfailure;.
  1425. */
  1426. function substr ($string, $start, $length = null) {}
  1427. /**
  1428. * Replace text within a portion of a string
  1429. * @link http://www.php.net/manual/en/function.substr-replace.php
  1430. * @param string mixed <p>
  1431. * The input string.
  1432. * </p>
  1433. * @param replacement string <p>
  1434. * The replacement string.
  1435. * </p>
  1436. * @param start int <p>
  1437. * If start is positive, the replacing will
  1438. * begin at the start'th offset into
  1439. * string.
  1440. * </p>
  1441. * <p>
  1442. * If start is negative, the replacing will
  1443. * begin at the start'th character from the
  1444. * end of string.
  1445. * </p>
  1446. * @param length int[optional] <p>
  1447. * If given and is positive, it represents the length of the portion of
  1448. * string which is to be replaced. If it is
  1449. * negative, it represents the number of characters from the end of
  1450. * string at which to stop replacing. If it
  1451. * is not given, then it will default to strlen(
  1452. * string ); i.e. end the replacing at the
  1453. * end of string. Of course, if
  1454. * length is zero then this function will have the
  1455. * effect of inserting replacement into
  1456. * string at the given
  1457. * start offset.
  1458. * </p>
  1459. * @return mixed The result string is returned. If string is an
  1460. * array then array is returned.
  1461. */
  1462. function substr_replace ($string, $replacement, $start, $length = null) {}
  1463. /**
  1464. * Quote meta characters
  1465. * @link http://www.php.net/manual/en/function.quotemeta.php
  1466. * @param str string <p>
  1467. * The input string.
  1468. * </p>
  1469. * @return string the string with meta characters quoted.
  1470. */
  1471. function quotemeta ($str) {}
  1472. /**
  1473. * Make a string's first character uppercase
  1474. * @link http://www.php.net/manual/en/function.ucfirst.php
  1475. * @param str string <p>
  1476. * The input string.
  1477. * </p>
  1478. * @return string the resulting string.
  1479. */
  1480. function ucfirst ($str) {}
  1481. /**
  1482. * Make a string's first character lowercase
  1483. * @link http://www.php.net/manual/en/function.lcfirst.php
  1484. * @param str string <p>
  1485. * The input string.
  1486. * </p>
  1487. * @return string the resulting string.
  1488. */
  1489. function lcfirst ($str) {}
  1490. /**
  1491. * Uppercase the first character of each word in a string
  1492. * @link http://www.php.net/manual/en/function.ucwords.php
  1493. * @param str string <p>
  1494. * The input string.
  1495. * </p>
  1496. * @return string the modified string.
  1497. */
  1498. function ucwords ($str) {}
  1499. /**
  1500. * Translate certain characters
  1501. * @link http://www.php.net/manual/en/function.strtr.php
  1502. * @param str string <p>
  1503. * The string being translated.
  1504. * </p>
  1505. * @param from string <p>
  1506. * The string being translated to to.
  1507. * </p>
  1508. * @param to string <p>
  1509. * The string replacing from.
  1510. * </p>
  1511. * @return string This function returns a copy of str,
  1512. * translating all occurrences of each character in
  1513. * from to the corresponding character in
  1514. * to.
  1515. */
  1516. function strtr ($str, $from, $to) {}
  1517. /**
  1518. * Quote string with slashes
  1519. * @link http://www.php.net/manual/en/function.addslashes.php
  1520. * @param str string <p>
  1521. * The string to be escaped.
  1522. * </p>
  1523. * @return string the escaped string.
  1524. */
  1525. function addslashes ($str) {}
  1526. /**
  1527. * Quote string with slashes in a C style
  1528. * @link http://www.php.net/manual/en/function.addcslashes.php
  1529. * @param str string <p>
  1530. * The string to be escaped.
  1531. * </p>
  1532. * @param charlist string <p>
  1533. * A list of characters to be escaped. If
  1534. * charlist contains characters
  1535. * \n, \r etc., they are
  1536. * converted in C-like style, while other non-alphanumeric characters
  1537. * with ASCII codes lower than 32 and higher than 126 converted to
  1538. * octal representation.
  1539. * </p>
  1540. * <p>
  1541. * When you define a sequence of characters in the charlist argument
  1542. * make sure that you know what characters come between the
  1543. * characters that you set as the start and end of the range.
  1544. * ]]>
  1545. * Also, if the first character in a range has a higher ASCII value
  1546. * than the second character in the range, no range will be
  1547. * constructed. Only the start, end and period characters will be
  1548. * escaped. Use the ord function to find the
  1549. * ASCII value for a character.
  1550. * ]]>
  1551. * </p>
  1552. * <p>
  1553. * Be careful if you choose to escape characters 0, a, b, f, n, r,
  1554. * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
  1555. * and \v.
  1556. * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
  1557. * \v (vertical tab) and \t (tab) are predefined escape sequences,
  1558. * while in C all of these are predefined escape sequences.
  1559. * </p>
  1560. * @return string the escaped string.
  1561. */
  1562. function addcslashes ($str, $charlist) {}
  1563. /**
  1564. * Strip whitespace (or other characters) from the end of a string
  1565. * @link http://www.php.net/manual/en/function.rtrim.php
  1566. * @param str string <p>
  1567. * The input string.
  1568. * </p>
  1569. * @param charlist string[optional] <p>
  1570. * You can also specify the characters you want to strip, by means
  1571. * of the charlist parameter.
  1572. * Simply list all characters that you want to be stripped. With
  1573. * .. you can specify a range of characters.
  1574. * </p>
  1575. * @return string the modified string.
  1576. */
  1577. function rtrim ($str, $charlist = null) {}
  1578. /**
  1579. * Replace all occurrences of the search string with the replacement string
  1580. * @link http://www.php.net/manual/en/function.str-replace.php
  1581. * @param search mixed <p>
  1582. * The value being searched for, otherwise known as the needle.
  1583. * An array may be used to designate multiple needles.
  1584. * </p>
  1585. * @param replace mixed <p>
  1586. * The replacement value that replaces found search
  1587. * values. An array may be used to designate multiple replacements.
  1588. * </p>
  1589. * @param subject mixed <p>
  1590. * The string or array being searched and replaced on,
  1591. * otherwise known as the haystack.
  1592. * </p>
  1593. * <p>
  1594. * If subject is an array, then the search and
  1595. * replace is performed with every entry of
  1596. * subject, and the return value is an array as
  1597. * well.
  1598. * </p>
  1599. * @param count int[optional] If passed, this will hold the number of matched and replaced needles.
  1600. * @return mixed This function returns a string or an array with the replaced values.
  1601. */
  1602. function str_replace ($search, $replace, $subject, &$count = null) {}
  1603. /**
  1604. * Case-insensitive version of <function>str_replace</function>.
  1605. * @link http://www.php.net/manual/en/function.str-ireplace.php
  1606. * @param search mixed <p>
  1607. * Every replacement with search array is
  1608. * performed on the result of previous replacement.
  1609. * </p>
  1610. * @param replace mixed <p>
  1611. * </p>
  1612. * @param subject mixed <p>
  1613. * If subject is an array, then the search and
  1614. * replace is performed with every entry of
  1615. * subject, and the return value is an array as
  1616. * well.
  1617. * </p>
  1618. * @param count int[optional] <p>
  1619. * The number of matched and replaced needles will
  1620. * be returned in count which is passed by
  1621. * reference.
  1622. * </p>
  1623. * @return mixed a string or an array of replacements.
  1624. */
  1625. function str_ireplace ($search, $replace, $subject, &$count = null) {}
  1626. /**
  1627. * Repeat a string
  1628. * @link http://www.php.net/manual/en/function.str-repeat.php
  1629. * @param input string <…

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