PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/configuration/org.eclipse.osgi/bundles/322/1/.cp/Resources/language/php5.4/standard.php

https://bitbucket.org/2GAndre/myeclipse4php
PHP | 11747 lines | 888 code | 691 blank | 10168 comment | 0 complexity | 36c6b0622c62961190ea431965c3076c MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause

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

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

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