PageRenderTime 76ms CodeModel.GetById 37ms RepoModel.GetById 0ms app.codeStats 1ms

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

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

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