PageRenderTime 68ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/phpstubs/phpruntime/standard.php

https://github.com/jkonieczny/netbeans-test
PHP | 11644 lines | 833 code | 653 blank | 10158 comment | 0 complexity | a3811c161293aa1c265a59a46fc91804 MD5 | raw file

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

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

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