├── 01_strings ├── booklist.php ├── capitalizing.out ├── capitalizing.out.strip ├── capitalizing.php ├── csvprog1.out ├── csvprog1.php ├── csvprog1.prepend ├── csvprog2.out ├── csvprog2.php ├── csvprog2.prepend ├── doublequotes.out ├── doublequotes.out.strip ├── doublequotes.php ├── fgetcsv.out ├── fgetcsv.php ├── fgetcsv.prepend ├── fixed-width-records.txt ├── fputcsv-print.out ├── fputcsv-print.php ├── fputcsv-string.append ├── fputcsv-string.php ├── fputcsv-string.prepend ├── fputcsv-write.php ├── fw-substr-booklist.php ├── fw-substr-booklist.prepend ├── fw-substr.out ├── fw-substr.php ├── fw-substr.prepend ├── fw-unpack-table.out ├── fw-unpack-table.php ├── fw-unpack-table.prepend ├── fw-unpack.out ├── fw-unpack.php ├── fw-unpack.prepend ├── fw-unpack2.append ├── fw-unpack2.out ├── fw-unpack2.php ├── fw-unpack2.prepend ├── fwgen-pack.out ├── fwgen-pack.php ├── fwgen-pad.out ├── fwgen-pad.php ├── heredoc.out ├── heredoc.php ├── heredoc2.out ├── heredoc2.php ├── heredocconcat.out ├── heredocconcat.php ├── heredocconcat.prepend ├── heredochtml.out ├── heredochtml.php ├── heredochtml.prepend ├── index.out ├── index.php ├── lookandsay.out ├── lookandsay.php ├── nowdoc.js ├── nowdoc.out ├── nowdoc.php ├── singlequotes.out ├── singlequotes.out.strip ├── singlequotes.php ├── storing1.append ├── storing1.out ├── storing1.php ├── storing1.prepend ├── storing2.out ├── storing2.php ├── storing2.prepend ├── storing3.out ├── storing3.php ├── storing3.prepend ├── storing4.out ├── storing4.php ├── str-split.php ├── str-split.prepend ├── strconcat.out ├── strconcat.out.strip ├── strconcat.php ├── strconcat.prepend ├── strconcat2.out ├── strconcat2.out.strip ├── strconcat2.php ├── strconcat2.prepend ├── strconcat3.out ├── strconcat3.out.strip ├── strconcat3.php ├── strconcat3.prepend ├── strconcat4.out.regex ├── strconcat4.php ├── strpos.out ├── strpos.php ├── strpos.prepend ├── strrand.php ├── strrand2.out ├── strrand2.php ├── strrev.out ├── strrev.php ├── strto-nonalpha.out ├── strto-nonalpha.out.strip ├── strto-nonalpha.php ├── strto.out ├── strto.out.strip ├── strto.php ├── substr-booklist.php ├── substr-booklist.prepend ├── substr-replace-negative.out ├── substr-replace-negative.out.strip ├── substr-replace-negative.php ├── substr-replace-solution.php ├── substr-replace-solution.prepend ├── substr-replace-zero.out ├── substr-replace-zero.php ├── substr-replace.out ├── substr-replace.out.strip ├── substr-replace.php ├── substr.out ├── substr.php ├── substr.prepend ├── substr2.out ├── substr2.php ├── substr3.out ├── substr3.php ├── substr4.out ├── substr4.php ├── substr5.out ├── substr5.out.strip ├── substr5.php ├── substr6.out ├── substr6.out.strip ├── substr6.php ├── tab-expand.append ├── tab-expand.php ├── tab-expand.prepend ├── tab-switch.out ├── tab-switch.out.strip ├── tab-switch.php ├── tab-unexpand.append ├── tab-unexpand.php ├── tab-unexpand.prepend ├── taking-dwarf.append ├── taking-dwarf.out ├── taking-dwarf.php ├── taking-dwarf2.out ├── taking-dwarf2.php ├── taking-dwarf2.prepend ├── taking-stack.out ├── taking-stack.php ├── taking1.php ├── taking2.php ├── taking2.prepend ├── taking3.php ├── trim-discussion.out ├── trim-discussion.out.strip ├── trim-discussion.php ├── trim-solution.append ├── trim-solution.php ├── trim-solution.prepend ├── uc-nonfirst.out ├── uc-nonfirst.out.strip ├── uc-nonfirst.php ├── ucfirst.out ├── ucfirst.out.strip ├── ucfirst.php ├── ucwords.out ├── ucwords.out.strip ├── ucwords.php ├── vowelcount.php ├── wordrev.out ├── wordrev.php ├── wordrev2.append ├── wordrev2.out ├── wordrev2.php ├── wordrev2.prepend ├── wordwrap.out ├── wordwrap.php ├── wordwrap2.out ├── wordwrap2.php ├── wordwrap2.prepend ├── wordwrap3.out ├── wordwrap3.php ├── wordwrap3.prepend ├── wordwrap4.out └── wordwrap4.php ├── 02_numbers ├── base-common.append ├── base-common.php ├── base-convert.append ├── base-convert.php ├── base-printf.append ├── base-printf.php ├── bcadd.append ├── bcadd.php ├── big-int-add.append ├── big-int-add.ini ├── big-int-add.out ├── big-int-add.php ├── ceil.out ├── ceil.php ├── comparing-floats.out ├── comparing-floats.php ├── count-hex.out ├── count-hex.php ├── deg2rad.append ├── deg2rad.php ├── exps-e.append ├── exps-e.php ├── exps-pow.append ├── exps-pow.php ├── floor.out ├── floor.php ├── formatting-NumberFormatter-words.append ├── formatting-NumberFormatter-words.php ├── formatting-NumberFormatter.append ├── formatting-NumberFormatter.php ├── formatting-money-formatCurrency.append ├── formatting-money-formatCurrency.php ├── formatting-money.append ├── formatting-money.php ├── formatting-number-format-decimals.append ├── formatting-number-format-decimals.php ├── formatting-number-format.append ├── formatting-number-format.php ├── gmp-add-example.append ├── gmp-add-example.php ├── gmp-add.out ├── gmp-add.php ├── gmp-fancy.append ├── gmp-fancy.php ├── hex-loop.out ├── hex-loop.php ├── is-numeric-commas.append ├── is-numeric-commas.out ├── is-numeric-commas.php ├── is-numeric.out ├── is-numeric.php ├── logs-10.append ├── logs-10.php ├── logs-e.append ├── logs-e.php ├── logs-other-base.append ├── logs-other-base.php ├── mars-distance.php ├── mars-distance.prepend ├── may-pluralize-examples.php ├── may-pluralize-examples.prepend ├── may-pluralize.php ├── pluralize.out ├── pluralize.php ├── rand-weighted-example.php ├── rand-weighted-example.prepend ├── rand-weighted-generator-example.min-version ├── rand-weighted-generator-example.php ├── rand-weighted-generator-example.prepend ├── rand-weighted-generator.min-version ├── rand-weighted-generator.php ├── rand-weighted.php ├── random-predict.out ├── random-predict.php ├── random-within-range.append ├── random-within-range.php ├── round-away-from-zero.out ├── round-away-from-zero.php ├── round-cart.out ├── round-cart.php ├── round-ceil-2.append ├── round-ceil-2.out ├── round-ceil-2.php ├── round-floor-2.append ├── round-floor-2.out ├── round-floor-2.php ├── round.out ├── round.php ├── series-generator.min-version ├── series-generator.out ├── series-generator.php ├── series-of-integers-for-incr.out ├── series-of-integers-for-incr.php ├── series-of-integers-for.out ├── series-of-integers-for.php ├── series-of-integers-range-char.out ├── series-of-integers-range-char.php ├── series-of-integers-range.out ├── series-of-integers-range.php ├── sphere-distance.append ├── sphere-distance.php ├── times-33-hash-1.php ├── times-33-hash-2.php ├── trig1.append ├── trig1.php ├── trig2.append ├── trig2.php ├── trig3.append └── trig3.php ├── 03_datetime ├── add-sub.out ├── add-sub.php ├── calendar-use-text.out ├── calendar-use-text.php ├── calendar-use-text.prepend ├── calendar-use.out ├── calendar-use.php ├── calendar-use.prepend ├── calendar.php ├── checkbirthdate.out ├── checkbirthdate.php ├── checkdate.append ├── checkdate.php ├── createfromformat.append ├── createfromformat.php ├── current-dateobj.out.regex ├── current-dateobj.php ├── date1.out ├── date1.out.regex ├── date1.php ├── datetime-format.append ├── datetime-format.php ├── dayweek.out.regex ├── dayweek.php ├── diff1.out ├── diff1.php ├── diff2.out ├── diff2.php ├── formatting.out ├── formatting.out.regex ├── formatting.php ├── fromformat.out ├── fromformat.php ├── getdate1.out ├── getdate1.out.regex ├── getdate1.php ├── getdate2.out ├── getdate2.php ├── getdatelocaltime.out ├── getdatelocaltime.out.regex ├── getdatelocaltime.php ├── gmmktime.append ├── gmmktime.php ├── gmmktime.prepend ├── jd-french.append ├── jd-french.php ├── jd-gregorian.append ├── jd-gregorian.php ├── jd-jewish.append ├── jd-jewish.php ├── jd-julian.append ├── jd-julian.php ├── localtime-mdy.out ├── localtime-mdy.out.regex ├── localtime-mdy.php ├── mktime.append ├── mktime.php ├── mktime.prepend ├── mktime1.out ├── mktime1.php ├── mktime2.append ├── mktime2.php ├── mktime2gmt.append ├── mktime2gmt.php ├── modify.out ├── modify.php ├── mondays.out.regex ├── mondays.php ├── parts-with-date.append ├── parts-with-date.php ├── range-1.php ├── range-2.php ├── range-3.php ├── range-iter-test.out ├── range-iter-test.php ├── range-iter-test.prepend ├── range-iter.out ├── range-iter.php ├── range-iter.prepend ├── strtotime-current-time.out ├── strtotime-current-time.out.regex ├── strtotime-current-time.php ├── strtotime-edt.out ├── strtotime-edt.php ├── strtotime-mdt.out ├── strtotime-mdt.php ├── strtotime-relative.out ├── strtotime-relative.out.regex ├── strtotime-relative.php ├── strtotime-time-and-date.out ├── strtotime-time-and-date.php ├── strtotime.php ├── tz-1.out ├── tz-1.out.regex ├── tz-1.php ├── tz-2.out ├── tz-2.out.regex ├── tz-2.php ├── utime-id.php ├── utime.php └── utime.prepend ├── 04_arrays ├── 1.php ├── 10.php ├── 100.php ├── 100.prepend ├── 101.php ├── 101.prepend ├── 102.php ├── 102.prepend ├── 103.php ├── 103.prepend ├── 104.out ├── 104.php ├── 105.out ├── 105.php ├── 106.php ├── 106.prepend ├── 107.php ├── 107.prepend ├── 108.php ├── 108.prepend ├── 109.out ├── 109.php ├── 11.php ├── 110.php ├── 111.out ├── 111.php ├── 111.prepend ├── 112.php ├── 12.php ├── 13.php ├── 14.php ├── 15.php ├── 16.php ├── 17.out ├── 17.php ├── 18.php ├── 19.out ├── 19.php ├── 19.prepend ├── 2.php ├── 20.php ├── 20.prepend ├── 21.php ├── 22.php ├── 23.php ├── 24.php ├── 24.prepend ├── 25.php ├── 25.prepend ├── 26.php ├── 26.prepend ├── 27.php ├── 27.prepend ├── 28.php ├── 28.prepend ├── 29.php ├── 29.prepend ├── 3.php ├── 30.php ├── 30.prepend ├── 31.php ├── 31.prepend ├── 32.php ├── 32.prepend ├── 33.php ├── 33.prepend ├── 34.php ├── 34.prepend ├── 35.php ├── 35.prepend ├── 36.php ├── 36.prepend ├── 37.php ├── 37.prepend ├── 38.php ├── 38.prepend ├── 39.php ├── 39.prepend ├── 4.php ├── 40.php ├── 40.prepend ├── 41.php ├── 42.err ├── 42.out ├── 42.php ├── 43.php ├── 43.prepend ├── 44.out ├── 44.php ├── 45.php ├── 46.php ├── 46.prepend ├── 47-6.out ├── 47-6.php ├── 47-6.prepend ├── 47.out ├── 47.php ├── 48.out ├── 48.php ├── 5.php ├── 50.out ├── 50.php ├── 51.php ├── 51.prepend ├── 52.out ├── 52.php ├── 53.out ├── 53.php ├── 53.prepend ├── 54.out ├── 54.php ├── 55.out ├── 55.php ├── 55.prepend ├── 56.php ├── 56.prepend ├── 57.php ├── 57.prepend ├── 58.php ├── 58.prepend ├── 59.php ├── 59.prepend ├── 6.php ├── 60.php ├── 60.prepend ├── 61.php ├── 62.out ├── 62.php ├── 63.php ├── 63.prepend ├── 64.php ├── 65.php ├── 65.prepend ├── 66.out ├── 66.php ├── 67.php ├── 68.php ├── 68.prepend ├── 69.php ├── 7.php ├── 70.php ├── 71.php ├── 72.php ├── 73.php ├── 73.prepend ├── 74.php ├── 74.prepend ├── 75.php ├── 75.prepend ├── 76.php ├── 76.prepend ├── 77.php ├── 78.php ├── 78.prepend ├── 79.php ├── 79.prepend ├── 8.php ├── 80.php ├── 81.php ├── 82.out ├── 82.php ├── 83.php ├── 84.php ├── 85.php ├── 86.php ├── 86.prepend ├── 87.out ├── 87.php ├── 88.out ├── 88.php ├── 89.php ├── 9.php ├── 90.php ├── 90.prepend ├── 91.php ├── 91.prepend ├── 92.php ├── 92.prepend ├── 93.php ├── 93.prepend ├── 94.php ├── 94.prepend ├── 95.php ├── 95.prepend ├── 96.out ├── 96.php ├── 97.out ├── 97.php ├── 98.out ├── 98.php ├── 99.out ├── 99.php ├── book-collection.out ├── book-collection.php ├── date-sort.php ├── foreach-fruits.out ├── foreach-fruits.php ├── fruits1.php ├── fruits2.php ├── gridhorizontal.php ├── log.txt ├── nonzero-init.php ├── nonzero-pres.out ├── nonzero-pres.php ├── nonzero-pres.prepend ├── nonzero-pres2.out ├── nonzero-pres2.php ├── nonzero-pres2.prepend ├── position.out ├── position.php ├── short-syntax1.php ├── short-syntax2.php ├── sorting1.php ├── yield2.php ├── yield3.php ├── yield4.php └── yield5.php ├── 05_variables ├── ake-isset.append ├── ake-isset.php ├── apc-add-test.append ├── apc-add-test.ini ├── apc-add-test.php ├── apc-add.ini ├── apc-add.php ├── apc-add.prepend ├── apc-success.append ├── apc-success.ini ├── apc-success.php ├── apc1.ini ├── apc1.php ├── apc1.prepend ├── check-the-count.out ├── check-the-count.php ├── default-ake.php ├── default-ake.prepend ├── default-array.php ├── default-if.php ├── default-if.prepend ├── default-ternary.php ├── default-ternary.prepend ├── default-varvar.php ├── default-varvar.prepend ├── dump-recursive-setup.php ├── encode-serialize.php ├── encode-unserialize.append ├── encode-unserialize.php ├── json-serialize.php ├── json-unserialize.append ├── json-unserialize.php ├── print_r-recursive.out ├── print_r-recursive.php ├── print_r-recursive.prepend ├── print_r.out ├── print_r.php ├── print_r_recursive.php ├── serialize-encode.out ├── serialize-encode.php ├── shm1.php ├── shm1.prepend ├── shmop1.php ├── shmop1.prepend ├── swap.append ├── swap.php ├── swap3.append ├── swap3.php ├── unset.php ├── unset.prepend ├── var-complex-iter.php ├── var-complex-iter.prepend ├── var-complex.out ├── var-complex.php ├── var-static.php ├── var-var.out ├── var-var.php ├── var_dump-ob.php ├── var_dump-ob.prepend ├── var_dump-recursive.out ├── var_dump-recursive.php ├── var_dump-recursive.prepend ├── var_dump.out ├── var_dump.php ├── var_export-recursive.out ├── var_export-recursive.php ├── var_export-recursive.prepend ├── var_export.out └── var_export.php ├── 06_functions ├── access-values.out ├── access-values.php ├── array-sort.append ├── array-sort.php ├── assign-defaults.php ├── by-value.out ├── by-value.php ├── call-user-func-array.append ├── call-user-func-array.php ├── call-user-func-array.prepend ├── call-user-func.append ├── call-user-func.php ├── call-user-func.prepend ├── closure.php ├── create-function.php ├── default-param-call-2.out ├── default-param-call-2.php ├── default-param-call-2.prepend ├── default-param-call.out ├── default-param-call.php ├── default-param-call.prepend ├── default-param-emptystring.php ├── default-param-message.php ├── default-param-not-constant.err ├── default-param-not-constant.ini ├── default-param-not-constant.php ├── default-param.php ├── dispatcher-list.php ├── dispatcher.err ├── dispatcher.php ├── fgetcsv-commas.out ├── fgetcsv-commas.php ├── fgetcsv-commas.prepend ├── fgetcsv.out ├── fgetcsv.php ├── fgetcsv.prepend ├── global-keyword.php ├── global-superglobal.php ├── global-unset.err ├── global-unset.ini ├── global-unset.out ├── global-unset.php ├── intro.append ├── intro.php ├── logf-vsprintf.php ├── logf.out.regex ├── logf.php ├── named-defaults.php ├── named.append ├── named.php ├── pass-by-ref.php ├── read-fields.php ├── read-fields.prepend ├── return-byref-1.out ├── return-byref-1.php ├── return-byref-call.err ├── return-byref-call.ini ├── return-byref-call.php ├── return-byref-call.prepend ├── return-byref-illegal.php ├── return-byref-without-ref.php ├── return-byref.php ├── return-false.php ├── return-multi-byref.php ├── return-multi-explode.php ├── return-multi-global.php ├── return-multi.php ├── skip-return.php ├── typehints-null.php ├── typehints.php ├── variable-args-2.append ├── variable-args-2.php ├── variable-args-3.append ├── variable-args-3.php ├── variable-args.append └── variable-args.php ├── 07_objects ├── Animals │ └── Person.php ├── Person.php ├── abstract1.php ├── abstract2.php ├── abstract3.php ├── abstract4.php ├── abstract4.prepend ├── access-control1.php ├── access-control2.php ├── access-control3.php ├── aggregating1.out ├── aggregating1.php ├── aggregating2.php ├── aggregating3.php ├── aggregating4.php ├── aggregating5.out ├── aggregating5.php ├── aggregating5.prepend ├── autoloading1.php ├── autoloading2.php ├── autoloading3.php ├── autoloading4.php ├── autoloading4.prepend ├── chaining1.php ├── chaining2.php ├── chaining3.php ├── cloning1.php ├── cloning1.prepend ├── cloning2.php ├── cloning2.prepend ├── cloning3.php ├── cloning4.out ├── cloning4.out.strip ├── cloning4.php ├── cloning4.prepend ├── cloning5.php ├── cloning6.out ├── cloning6.out.strip ├── cloning6.php ├── cloning6.prepend ├── constants1.php ├── constants1.prepend ├── constants2.php ├── constants2.prepend ├── constants3.out ├── constants3.php ├── constants4.out ├── constants4.php ├── constants5.err ├── constants5.php ├── constants6.out ├── constants6.php ├── constructors1.php ├── constructors2.php ├── constructors3.php ├── destructors1.php ├── destructors2.php ├── destructors3.php ├── dynamic-instantiation1.php ├── dynamic-instantiation2.php ├── dynamic-instantiation3.php ├── dynamic-instantiation4.php ├── dynamic1.php ├── instantiating1.php ├── instantiating2.php ├── interfaces1.php ├── interfaces2.php ├── interfaces3.php ├── interfaces4.php ├── interfaces5.php ├── intro-invoke.php ├── intro1.php ├── intro10.php ├── intro2.php ├── intro3.php ├── intro4.php ├── intro5.php ├── intro6.php ├── intro7.php ├── intro8.php ├── intro9.php ├── introspection1.php ├── introspection2.php ├── introspection3.php ├── introspection4.php ├── isa1.php ├── isa2.php ├── isa3.php ├── isa4.php ├── isa5.php ├── overriding-methods1.php ├── overriding-methods2.php ├── overriding-methods3.php ├── overriding-properties1.php ├── overriding-properties2.php ├── overriding-properties3.php ├── overriding-properties4.php ├── overriding-properties5.php ├── overriding-properties6.php ├── polymorphism1.php ├── polymorphism2.php ├── preventing-changes1.php ├── preventing-changes2.php ├── preventing-changes3.php ├── preventing-changes4.php ├── references1.php ├── references2.php ├── serialization1.php ├── static1.php ├── static2.php ├── static3.php ├── static4.out ├── static4.php ├── static5.php ├── stringification1.php ├── stringification2.php ├── stringification3.php ├── stringification4.php ├── stringification5.php ├── stringification6.php ├── stringification7.php ├── traits1.php ├── traits2.out ├── traits2.php ├── traits3.php ├── traits4.php ├── whereis1.php └── whereis2.php ├── 08_fundamentals ├── License.md ├── Readme.md ├── Readme.php ├── apache1.php ├── apache2.php ├── basic-auth1.php ├── basic-auth2.php ├── basic-auth3.php ├── basic-auth4.php ├── basic-auth5.php ├── basic-auth6.php ├── browsers1.ini ├── browsers1.php ├── browsers3.php ├── buffer-output1.php ├── buffer-output2.out ├── buffer-output2.php ├── buffer-output4.ini ├── buffer-output5.ini ├── composer.json ├── compress-output1.ini ├── compress-output2.ini ├── cookie-auth1.php ├── cookie-auth2.html ├── cookie-auth3.php ├── cookie-auth4.php ├── cookie-auth5.php ├── cookie-auth6.php ├── delete-cookie1.php ├── flush-output1.php ├── flush-output2.php ├── get-cookie1.php ├── get-cookie2.php ├── get-env1.php ├── get-env2.php ├── get-env3.php ├── header-read1.php ├── header-read2.php ├── header-write1.php ├── header-write2.php ├── header-write3.php ├── numbers.txt ├── pages │ ├── 8cf04a9734132302f96da8e113e80ce5 │ └── a94dc7d578c98d16eb719dbeefc705c3 ├── php-markdown-lib-1.4.1.zip ├── post-body1.php ├── program-account1.sql ├── program-account2.php ├── program-account3.php ├── program-account4.php ├── program-range-example1.txt ├── program-range-example2.txt ├── program-range-example3.txt ├── program-range-example4.txt ├── program-range-example5.txt ├── program-range-example6.txt ├── program-range.php ├── program-wiki1.php ├── query-string1.out ├── query-string1.php ├── query-string3.txt ├── query-string4.txt ├── query-string5.out ├── query-string5.php ├── query-string7.out ├── query-string7.php ├── redirect1.php ├── redirect2.php ├── redirect3.php ├── redirect4.html ├── set-cookie1.php ├── set-cookie2.php ├── set-cookie3.php ├── set-cookie4.php ├── set-env1.php ├── set-env2.ini ├── set-env3.php ├── statuscode1.php ├── statuscode2.php └── statuscode3.php ├── 09_forms ├── check1.out ├── check1.php ├── check2.out ├── check2.php ├── check2.prepend ├── checkboxesmulti.html ├── checkboxesmultiequiv.php ├── checkboxesmultiprint.out ├── checkboxesmultiprint.php ├── checkboxesmultiprint.prepend ├── checkdate.php ├── checkdate.prepend ├── creditcard.php ├── creditcard.prepend ├── datecc.php ├── datecc.prepend ├── datemenu.out ├── datemenu.out.regex ├── datemenu.php ├── defaulterror.out ├── defaulterror.php ├── defaulterror.prepend ├── filter-email.append ├── filter-email.php ├── filter-email.server ├── floatcast.php ├── floatcast.prepend ├── formbasic.out ├── formbasic.php ├── formstages.out ├── formstages.php ├── formstages.prepend ├── getpost-get.out ├── getpost-get.php ├── getpost-post.out ├── getpost-post.php ├── getpost-post.prepend ├── getpost-router.out ├── getpost-router.php ├── getpost-router.prepend ├── getpost.out ├── getpost.php ├── getpost.prepend ├── hasvar.out ├── hasvar.php ├── hello.out ├── hello.php ├── hello.prepend ├── htmlentities.out ├── htmlentities.php ├── htmlentities.prepend ├── htmlesc.out ├── htmlesc.php ├── intcast.php ├── intcast.prepend ├── numberregex.php ├── numberregex.prepend ├── radio1.out ├── radio1.php ├── radio1.prepend ├── radio2.out ├── radio2.php ├── radio2.prepend ├── registerglobals.min-version ├── registerglobals.php ├── registerglobals2.min-version ├── registerglobals2.php ├── requiredvalid.append ├── requiredvalid.php ├── requiredvalid.server ├── select1.out ├── select1.php ├── select1.prepend ├── select1menu.html ├── select2.out ├── select2.php ├── select2.prepend ├── select2menu.html ├── show-form.out ├── show-form.php ├── show-form.prepend ├── stage-1.out ├── stage-1.php ├── stage-1.prepend ├── stage-2.out ├── stage-2.php ├── stage-2.prepend ├── stage-3.out ├── stage-3.php ├── stage-3.prepend ├── uniqueform.out.regex ├── uniqueform.php ├── uniqueformdb.php ├── uniqueformdb.prepend ├── upload.out ├── upload.php ├── upload.prepend ├── validate-float.append ├── validate-float.php ├── validate-float.server ├── validate-int.append ├── validate-int.php └── validate-int.server ├── 10_databases ├── PDODSN.min-version ├── PDODSN.php ├── bindparam.out ├── bindparam.php ├── bindparam.prepend ├── buildquery.php ├── cachelite.out ├── cachelite.php ├── cachelite.prepend ├── create-message.db.php ├── dba.append ├── dba.out ├── dba.php ├── dba.prepend ├── dbmlength.out ├── dbmlength.php ├── dbmlength.prepend ├── dbmserialize.append ├── dbmserialize.php ├── dbmserialize.prepend ├── dbmuser.out ├── dbmuser.php ├── dbmuser.prepend ├── editpage.min-version ├── editpage.php ├── errorinfo.out ├── errorinfo.php ├── errorinfo.prepend ├── exceptions.out ├── exceptions.php ├── exceptions.prepend ├── exec.php ├── exec.prepend ├── fetch.out ├── fetch.php ├── fetch.prepend ├── fetchall.out ├── fetchall.php ├── fetchall.prepend ├── fetchbound.out ├── fetchbound.php ├── fetchbound.prepend ├── gpc.php ├── gpc.prepend ├── indexedlinks.php ├── insertimplode.php ├── insertimplode.prepend ├── levellimit.min-version ├── levellimit.php ├── limited-sql.php ├── limited-sql.prepend ├── message.sql ├── messageboard-for-screenshot.html ├── messageboard.out.regex ├── messageboard.php ├── named-placeholders.php ├── named-placeholders.prepend ├── paging-links-for-screenshot.server ├── paging-links.out ├── paging-links.php ├── paging-links.prepend ├── paging-sqlite.php ├── paging-sqlite.prepend ├── paramlob.php ├── paramlob.prepend ├── pdostatementsubclass.out ├── pdostatementsubclass.php ├── pdostatementsubclass.prepend ├── predis.out ├── predis.php ├── prepare-multi.php ├── prepare-multi.prepend ├── prepare-reuse.php ├── prepare-reuse.prepend ├── prepare.out ├── prepare.php ├── prepare.prepend ├── prepex.php ├── prepex.prepend ├── printlink.php ├── queryforeach.out ├── queryforeach.php ├── queryforeach.prepend ├── quote.php ├── quote.prepend ├── redis.ini ├── redis.out ├── redis.php ├── rowcount.out ├── rowcount.php ├── rowcount.prepend ├── rowcountselect.out ├── rowcountselect.php ├── rowcountselect.prepend ├── sqlite.php ├── sqlite.prepend ├── static.php ├── staticarray.php ├── staticarrayold.min-version ├── staticarrayold.php ├── uniqid.php ├── uniqid.prepend ├── unique-mysql.min-version ├── unique-mysql.php ├── unique-sqlite.php ├── unique-sqlite.prepend ├── updateimplode.php ├── updateimplode.prepend ├── zodiac.db ├── zodiac.prepend ├── zodiaccreate.sql └── zodiacdata.sql ├── 11_sessions ├── db-setup.min-version ├── db-setup.php ├── db-using.out ├── db-using.php ├── db.php ├── fixation.php ├── hijack.php ├── location-sid.php ├── pcshm-use.php ├── pcshm-use.prepend ├── pcshm.c ├── pcshm.php ├── searches.sql ├── searchsummary.sql ├── start.out ├── start.php ├── summary.php ├── summary.prepend ├── trans-1.out ├── trans-1.php ├── trans-2.out.regex └── trans-2.php ├── 12_xml ├── address-book.out ├── address-book.xml ├── address-book.xsd ├── card-catalog.out ├── card-catalog.xml ├── content-encoding1.php ├── content-encoding1.prepend ├── content-encoding2.php ├── content-encoding2.prepend ├── content-encoding3.php ├── content-encoding3.prepend ├── content-encoding4.out ├── content-encoding4.php ├── content-encoding4.prepend ├── content-encoding5.out ├── content-encoding5.php ├── content-encoding5.prepend ├── content-encoding6.err ├── content-encoding6.err.regex ├── content-encoding6.php ├── content-encoding6.prepend ├── content-encoding6.txt ├── debug-telnet.txt ├── extract-path1.php ├── extract-path2.php ├── extract-path3.php ├── extract-path4.php ├── extract-path5.out ├── extract-path5.php ├── extract-path6.php ├── extract-path7.out ├── extract-path7.php ├── geb.php ├── gen-dom1.out ├── gen-dom1.php ├── gen-dom10.txt ├── gen-dom11.txt ├── gen-dom12.php ├── gen-dom12.xml ├── gen-dom3.txt ├── gen-dom4.txt ├── gen-dom5.txt ├── gen-dom6.txt ├── gen-dom7.txt ├── gen-dom8.txt ├── gen-dom9.xml ├── gen-string1.out ├── gen-string1.php ├── intro1.xml ├── intro2.xml ├── mangle-email.xsl ├── parse-basic1.xml ├── parse-basic2.txt ├── parse-basic3.out ├── parse-basic3.php ├── parse-basic5.out ├── parse-basic5.php ├── parse-basic6.out ├── parse-basic6.php ├── parse-basic6.prepend ├── parse-complex.out ├── parse-complex.php ├── parse-complex1.out ├── parse-complex1.php ├── parse-complex1.prepend ├── parse-complex2.xml ├── parse-complex3.out ├── parse-complex3.php ├── parse-complex3.prepend ├── parse-xml1.out ├── parse-xml1.php ├── parse-xml2.php ├── parse-xml2.prepend ├── parse-xml4.php ├── parse-xml4.prepend ├── parse-xml5.php ├── parse-xml5.prepend ├── parse-xml6.out ├── parse-xml6.php ├── parse-xml6.prepend ├── parse-xml7.out ├── parse-xml7.php ├── parse-xml8.out ├── parse-xml8.php ├── parse-xml8.prepend ├── read-rss1.php ├── read-rss2.php ├── read-rss2.prepend ├── read-rss3.php ├── read-rss3.prepend ├── read-rss4.php ├── read-rss4.prepend ├── strftime.xsl ├── stylesheet.xsl ├── sx1.out ├── sx1.php ├── validate1.out.regex ├── validate1.php ├── validate2.out.regex ├── validate2.php ├── validate3.out.regex ├── validate3.php ├── write-atom1.out ├── write-atom1.php ├── write-atom2.php ├── write-atom3.php ├── write-atom4.out ├── write-atom4.php ├── write-rss1.out ├── write-rss1.php ├── write-rss2.php ├── write-rss3.php ├── write-rss4.out ├── write-rss4.php ├── write-rss4.prepend ├── xslt-functions1.php ├── xslt-functions2.xsl ├── xslt-functions3.php ├── xslt-functions4.out ├── xslt-functions4.out.regex ├── xslt-functions4.php ├── xslt-functions5.out ├── xslt-functions5.php ├── xslt-functions7.php ├── xslt-functions8.xsl ├── xslt-params1.out ├── xslt-params1.php ├── xslt-params2.out ├── xslt-params2.php ├── xslt-params4.xsl ├── xslt-transform1.php ├── xslt-transform2.php ├── xslt-transform3.php ├── xslt-transform3.prepend ├── xslt-transform4.php └── xslt-transform4.prepend ├── 13_rest-client ├── cookies1.php ├── cookies2.php ├── cookies3.php ├── cookies4.php ├── debug-telnet.txt ├── debug1.php ├── debug10.php ├── debug11.php ├── debug2.php ├── debug4.php ├── debug5.php ├── debug6.php ├── debug7.php ├── debug8.php ├── debug9.php ├── get1.php ├── get10.php ├── get11.php ├── get12.php ├── get13.php ├── get2.php ├── get3.php ├── get4.php ├── get5.php ├── get6.php ├── get7.php ├── get8.php ├── get9.php ├── header1.php ├── header2.php ├── header3.php ├── header4.php ├── method1.php ├── method2.php ├── method3.php ├── method4.php ├── oauth1.php ├── oauth2.php ├── post1.php ├── post2.php ├── post3.php ├── timeout1.php ├── timeout2.php ├── timeout3.php ├── timeout4.php ├── timeout5.php └── timeout6.php ├── 14_rest-server ├── clean1.txt ├── clean2.php ├── clean3.php ├── clean4.out ├── contenttype1.http ├── contenttype10.php ├── contenttype2.php ├── contenttype3.http ├── contenttype4.php ├── contenttype5.http ├── contenttype6.php ├── contenttype7.php ├── contenttype8.http ├── contenttype9.php ├── delete1.http ├── delete2.php ├── delete3.http ├── failure1.php ├── failure2.php ├── failure3.php ├── get1.http ├── get2.php ├── get3.http ├── get4.php ├── get5.php ├── get6.php ├── get7.php ├── intro1.json ├── intro2.xml ├── post1.http ├── post10.php ├── post2.php ├── post3.http ├── post4.http ├── post5.php ├── post6.php ├── post7.php ├── post8.php ├── post9.http ├── put1.http ├── put2.php ├── put3.http ├── put4.http ├── resource1.php ├── resource2.php ├── resource3.out ├── resource4.php ├── resource5.php └── resource6.php ├── 15_automation ├── ajax-headers.php ├── ajax-json.out ├── ajax-json.php ├── ajax-xml.out ├── ajax-xml.php ├── article.html ├── bad.html ├── elephant.html ├── extractor.out ├── extractor.php ├── fresh-links-sample.out ├── fresh.out ├── fresh.php ├── good.html ├── good.xhtml ├── html2text.php ├── html2text.prepend ├── jsx-html.html ├── links-tidy-full.out ├── links-tidy-full.php ├── links-tidy.out ├── links-tidy.php ├── moretext.php ├── moretext.prepend ├── search.js ├── search.out ├── search.php ├── search.prepend ├── stale-links-sample.out ├── stale.out ├── stale.php ├── stream-strip-some.out ├── stream-strip-some.php ├── stream-strip.out ├── stream-strip.php ├── strip-whitelist.out ├── strip-whitelist.php ├── strip-whitelist.prepend ├── striptags.out ├── striptags.php ├── tag-stripper.php ├── text2html.php ├── tidy-xhtml.append ├── tidy-xhtml.php ├── tidy.append ├── tidy.php ├── wordreplace-dom.out ├── wordreplace-dom.php ├── wordreplace-regex.out ├── wordreplace-regex.php ├── wordreplace.out └── wordreplace.php ├── 16_services ├── dns-get-record.out ├── dns-get-record.out.regex ├── dns-get-record.php ├── ftp-close.php ├── ftp-close.skip ├── ftp-connect.php ├── ftp-connect.skip ├── ftp-curl-again.php ├── ftp-curl-again.skip ├── ftp-curl.php ├── ftp-curl.skip ├── ftp-fget.php ├── ftp-fget.skip ├── ftp-login.php ├── ftp-login.skip ├── ftp-put-get.php ├── ftp-put-get.skip ├── ftp-put.skip ├── ftp-timeout.php ├── ftp-timeout.skip ├── ftp.php ├── ftp.skip ├── gethostbyname-failure.php ├── gethostbyname-failure.skip ├── gethostbynameaddr.append ├── gethostbynameaddr.out ├── gethostbynameaddr.php ├── gethostbynamel.out ├── gethostbynamel.php ├── gethostbynamel.skip ├── getmxrr.out ├── getmxrr.out.regex ├── getmxrr.php ├── headers.txt ├── imap-fetch-body.php ├── imap-fetch-body.skip ├── imap-header-body.php ├── imap-header-body.skip ├── imap-headers.php ├── imap-headers.skip ├── imap-open-opts.php ├── imap-open-opts.skip ├── imap-open-quotes.php ├── imap-open-quotes.skip ├── imap-open.php ├── imap-open.skip ├── imap-pop-read.php ├── imap-pop-read.skip ├── ldap-auth-form.php ├── ldap-auth-form.skip ├── ldap-auth-get.php ├── ldap-auth-get.skip ├── ldap-auth-init.php ├── ldap-auth-init.skip ├── ldap-auth-logout.php ├── ldap-auth-logout.skip ├── ldap-auth-start.php ├── ldap-auth-start.skip ├── ldap-auth-user.php ├── ldap-auth-user.skip ├── ldap-auth.php ├── ldap-auth.skip ├── ldap-bind-auth.php ├── ldap-bind-auth.skip ├── ldap-connect-bind.php ├── ldap-connect-bind.skip ├── ldap-iterate.out ├── ldap-iterate.php ├── ldap-iterate.skip ├── ldap-search-get.php ├── ldap-search-get.skip ├── ldap.php ├── ldap.skip ├── mail-headers.php ├── mail-wrapper.php ├── mail.php ├── ping-data.out ├── ping-data.out.regex ├── ping-data.php ├── ping-data.prepend ├── ping.out ├── ping.php ├── ping.prepend ├── pop-open.php ├── pop-open.skip ├── whois-iana.out.regex ├── whois-iana.php ├── whois-iana.prepend ├── whois.abbreviated.out ├── whois.append ├── whois.out ├── whois.php ├── whois.prepend ├── zetamail-attach.php ├── zetamail-attach.prepend ├── zetamail-image.php ├── zetamail-image.prepend ├── zetamail-mime.php ├── zetamail-mime.prepend ├── zetamail-smtp.php ├── zetamail-smtp.prepend ├── zetamail-smtp.skip ├── zetamail.php └── zetamail.prepend ├── 17_graphics ├── arcs-circles.php ├── arcs-filled.php ├── arcs1.php ├── arcs2.php ├── arcs3.php ├── arcs4.php ├── arcs5.php ├── arcs6.php ├── centered1.php ├── centered10.php ├── centered11.php ├── centered2.php ├── centered3.php ├── centered4.php ├── centered5.php ├── centered6.php ├── centered7.php ├── centered8-fig.php ├── centered8.php ├── centered9.php ├── dynamic-solution.php ├── dynamic1.php ├── dynamic2.php ├── dynamic2.prepend ├── exif1.out ├── exif1.php ├── exif2.php ├── exif3.php ├── exif4.php ├── exif5.php ├── iguana.jpg ├── iguana.php ├── intro1.php ├── intro2.php ├── intro3.php ├── intro3.prepend ├── intro4.php ├── intro5.php ├── intro6.php ├── intro7.php ├── intro8.php ├── lines-triangle.php ├── lines.php ├── lines1.php ├── lines2.php ├── lines3.php ├── lines4.php ├── lines5.php ├── patterned.php ├── patterned1.php ├── patterned2.php ├── patterned3.php ├── patterned4.php ├── poll1.php ├── poll2.php ├── securely1.php ├── securely2.php ├── text-test.php ├── text1-all.php ├── text1-up.php ├── text1.php ├── text2.php ├── text3.php ├── text4.php ├── text5.php ├── text6.php ├── text7-fig.php ├── text7.php ├── thumbnail-iguana.php ├── thumbnail1.php ├── thumbnail2.php ├── thumbnail3.php ├── thumbnail4.php ├── thumbnail5.php ├── thumbnail6.php ├── thumbnail7.php ├── transparent1.php ├── transparent2.php ├── transparent3.out ├── transparent3.php ├── watermark1.php └── watermark2.php ├── 18_security ├── bcrypt-55-verify.min-version ├── bcrypt-55-verify.out ├── bcrypt-55-verify.php ├── bcrypt-55-verify.prepend ├── bcrypt-55.append ├── bcrypt-55.min-version ├── bcrypt-55.out ├── bcrypt-55.php ├── bcrypt-55.prepend ├── check-hash.append ├── check-hash.out ├── check-hash.php ├── check-hash.prepend ├── cookie-check.append ├── cookie-check.out ├── cookie-check.php ├── cookie-check.prepend ├── cookie-hash.php ├── crypt-verify.out ├── crypt-verify.php ├── crypt-verify.prepend ├── crypt.append ├── crypt.out ├── crypt.php ├── crypt.prepend ├── easy-password.out ├── easy-password.php ├── easy-password.prepend ├── encrypt-db-retrieve.append ├── encrypt-db-retrieve.out ├── encrypt-db-retrieve.php ├── encrypt-db-retrieve.prepend ├── encrypt-db-store.append ├── encrypt-db-store.out ├── encrypt-db-store.php ├── encrypt-db-store.prepend ├── env.conf ├── env.php ├── env.prepend ├── filter.php ├── form-hash.out ├── form-hash.php ├── get-crypt.out ├── get-crypt.php ├── get-encrypted.min-version ├── get-encrypted.php ├── gnupg-keyinfo.ini ├── gnupg-keyinfo.out ├── gnupg-keyinfo.php ├── gnupg-keyinfo.prepend ├── gnupg.append ├── gnupg.ini ├── gnupg.out.regex ├── gnupg.php ├── gnupg.prepend ├── include.conf ├── mcrypt-encrypt.out ├── mcrypt-encrypt.out.regex ├── mcrypt-encrypt.php ├── mcrypt-iv.append ├── mcrypt-iv.out ├── mcrypt-iv.php ├── mcrypt-iv.prepend ├── new-password.append ├── new-password.min-version ├── new-password.out ├── new-password.php ├── new-password.prepend ├── pubring.gpg ├── random_seed ├── save-crypt.out ├── save-crypt.php ├── secring.gpg ├── session-embedded.html ├── session-regenerate.php ├── show-encrypted.append ├── show-encrypted.out.regex ├── show-encrypted.php ├── show-encrypted.prepend ├── spoof-check.php ├── spoof-check.prepend ├── spoof-form.out.regex ├── spoof-form.php ├── sql.php ├── sql.prepend ├── ssl-cookie.php ├── ssl-cookie.prepend ├── ssl.out ├── ssl.php ├── ssl.prepend ├── trustdb.gpg ├── xss.out ├── xss.php └── xss.prepend ├── 19_i18n ├── collate1.php ├── currency-attributes.out ├── currency-attributes.php ├── currency-message.out ├── currency-message.php ├── currency-number.out ├── currency-number.php ├── datetime-format-all.min-version ├── datetime-format-all.out ├── datetime-format-all.php ├── datetime-formatobject.min-version ├── datetime-formatobject.out ├── datetime-formatobject.php ├── datetime-formatter-other.out ├── datetime-formatter-other.php ├── datetime-formatter.out ├── datetime-formatter.out.regex ├── datetime-formatter.php ├── datetime-message-formatpattern.out ├── datetime-message-formatpattern.php ├── datetime-message.out ├── datetime-message.out.regex ├── datetime-message.php ├── decimalformat.out ├── decimalformat.php ├── defaultlocale1.php ├── defaultlocale2.php ├── en_GB.ser ├── en_US.res ├── en_US.ser ├── encodeout1.php ├── images1.php ├── images2.err ├── images2.out ├── images2.php ├── images2.prepend ├── images3.err ├── images3.out ├── images3.php ├── images3.prepend ├── includes1.php ├── localefromhttp.append ├── localefromhttp.out ├── localefromhttp.php ├── localefromhttp.prepend ├── numberformat.out ├── numberformat.php ├── numbers-other.out ├── numbers-other.php ├── numbers.out ├── numbers.php ├── plurals.out ├── plurals.php ├── resources-bundle-use.out ├── resources-bundle-use.php ├── resources-bundle.txt ├── resources-serialized-save.php ├── resources-serialized-use.out ├── resources-serialized-use.php ├── select.out ├── select.php ├── text1-named.min-version ├── text1-named.out ├── text1-named.php ├── text1.out ├── text1.php ├── utf81.out ├── utf81.php ├── utf83.out ├── utf83.php ├── utf84.append ├── utf84.out ├── utf84.php ├── utf84.prepend ├── utf85.out ├── utf85.php ├── utf87.php └── utf87.skip ├── 20_errors ├── backtrace-parse.out ├── backtrace-parse.php ├── custom-exception.err ├── custom-exception.out ├── custom-exception.php ├── custom-exception.prepend ├── custom1.php ├── custom2.out.regex ├── custom2.php ├── custom3.out ├── exception1.php ├── exception1.prepend ├── exception2.php ├── exception2.prepend ├── exception3.php ├── exception3.prepend ├── headers1.php ├── headers1.skip ├── headers2.php ├── headers2.skip ├── hiding1.conf ├── hiding2.php ├── hiding3.conf ├── hiding4.php ├── hiding5.html ├── ini-get-all.out ├── ini-get-all.php ├── log-debug1.php ├── log-debug2.conf ├── log-debug3.php ├── log-debug3.prepend ├── log-debug4.err ├── log-debug4.php ├── log-debug5.php ├── logging1.php ├── logging1.prepend ├── logging2.err ├── logging2.php ├── logging2.prepend ├── logging3.err ├── logging3.php ├── logging3.prepend ├── logging4.err ├── logging4.php ├── logging4.prepend ├── parse1.out ├── parse1.php ├── read-config1.php ├── read-config2.php ├── read-config3.php ├── set-config1.php ├── set-config2.php ├── stack1.out ├── stack1.php ├── stack2.out ├── tuning1.php ├── tuning2.out ├── tuning2.php ├── tuning2.prepend ├── tuning3.out ├── tuning3.php └── tuning3.prepend ├── 21_engineering ├── ArrayTest.php ├── ArrayTest.skip ├── ExampleDotComTest.out ├── ExampleDotComTest.php ├── ExampleDotComTest.skip ├── StringTest.php ├── StringTest.skip ├── router-currency.out.regex ├── router-currency.php ├── router-currency.prepend ├── suite.out ├── test1.out ├── test1.phpt ├── utest1.out ├── utest1.php └── utest1.skip ├── 22_performance ├── cachegrind.out._factorial1_php.1388986935 ├── cachegrind.out._factorial2_php.1388987191 ├── factorial1.php ├── factorial2.php ├── intro1.php ├── no-regex1.php ├── no-regex2.out ├── no-regex2.php ├── no-regex4.php ├── profiling1.php ├── timing-function1.php ├── timing-program1.php ├── timing-program2.php ├── timing-program3.out ├── timing-program3.php ├── timing-program4.php ├── timing-program5.php ├── timing-program6.php └── xdebug-trace1.php ├── 23_regex ├── ereg1.php ├── ereg10.out ├── ereg10.php ├── ereg10.prepend ├── ereg11.php ├── ereg2.php ├── ereg3.php ├── ereg3.prepend ├── ereg4.out ├── ereg4.php ├── ereg5.php ├── ereg6.php ├── ereg7.out ├── ereg7.php ├── ereg8.php ├── ereg9.out ├── ereg9.php ├── ereg9.prepend ├── escaping1.out ├── escaping1.php ├── escaping1.prepend ├── escaping3.txt ├── escaping5.out ├── escaping5.php ├── escaping5.prepend ├── example.html ├── func1.out ├── func1.php ├── func3-old.out ├── func3-old.php ├── func3.out ├── func3.php ├── greed1.append ├── greed1.out ├── greed1.php ├── greed1.prepend ├── greed2.append ├── greed2.out ├── greed2.php ├── greed2.prepend ├── greed3.out ├── greed3.php ├── html-to-decode.html ├── html1.out ├── html1.php ├── html2.out ├── html2.php ├── intro1.append ├── intro1.out ├── intro1.php ├── intro1.prepend ├── intro2.out ├── intro2.php ├── intro4.out ├── intro4.php ├── linematch1.php ├── linematch1.skip ├── linematch2.php ├── linematch2.skip ├── nth1.out ├── nth1.php ├── nth2.out ├── nth2.php ├── parens1.out ├── parens1.php ├── parens3.out ├── parens3.php ├── records1.php ├── records1.skip ├── records2.out ├── records2.txt ├── records3.append ├── records3.out ├── records3.php ├── records3.prepend ├── records4.append ├── records4.out ├── records4.php ├── records4.prepend ├── wordmatch-extra.out ├── wordmatch-extra.php ├── wordmatch-fr.out ├── wordmatch-fr.php ├── wordmatch.out └── wordmatch.php ├── 24_files ├── alllines1.php ├── blah.ini ├── books.txt ├── compressed1.php ├── compressed2.err ├── compressed2.ini ├── compressed2.out ├── compressed2.php ├── config1.php ├── config2.ini ├── config3.out ├── config3.php ├── config4.ini ├── config5.append ├── config5.out ├── config5.php ├── config7.php ├── config8.php ├── counting1.php ├── counting2.php ├── counting3.php ├── counting4.php ├── counting5.php ├── counting6.php ├── custom1.php ├── custom2.php ├── custom3.html ├── custom4.php ├── escaping1.php ├── escaping2.php ├── everyword1.php ├── everyword2.php ├── flush1.php ├── great-american-novel.txt ├── ini ├── inplace1.php ├── inplace2.php ├── inplace3.php ├── intro1.php ├── intro1.prepend ├── intro2.ini ├── intro2.out ├── intro2.php ├── intro2.prepend ├── intro4.ini ├── intro4.php ├── intro5.php ├── intro6.php ├── intro7.php ├── local1.php ├── local2.php ├── local3.php ├── lock1.php ├── lock1.prepend ├── lock2.php ├── lock2.prepend ├── lock3.ini ├── lock3.php ├── lock4.php ├── lots-of-data.gz ├── multi1.php ├── multi2.php ├── myapp.ini ├── pass1.php ├── pass2.php ├── quotes-of-the-day.txt ├── randomline1.php ├── remote1.php ├── remote2.php ├── rstderr1.php ├── rstderr2.ini ├── rstderr2.php ├── rstdin1.php ├── rstdout1.php ├── rstdout2.php ├── rstdout3.txt ├── rstdout4.php ├── sayings.txt ├── string1.php ├── string2.php ├── temporary1.php ├── temporary2.php ├── temporary3.out ├── temporary3.php ├── trackerrors.ini ├── variable1.php ├── variable3.php ├── variable4.php ├── variable5.php ├── wstdout1.php └── wstdout2.php ├── 25_directories ├── all1.append ├── all1.out ├── all1.php ├── all1.prepend ├── all3.append ├── all3.out ├── all3.php ├── all3.prepend ├── copying1.append ├── copying1.php ├── copying1.prepend ├── copying2.append ├── copying2.php ├── copying2.prepend ├── copying3.php ├── deleting1.php ├── deleting1.prepend ├── harpo.txt ├── httpddir1.php ├── information1.append ├── information1.php ├── information1.prepend ├── information2.append ├── information2.php ├── information2.prepend ├── information3.txt ├── intro1.append ├── intro1.out ├── intro1.php ├── intro1.prepend ├── intro2.append ├── intro2.out ├── intro2.php ├── intro2.prepend ├── intro3.append ├── intro3.php ├── intro3.prepend ├── intro4.php ├── mkdir1.php ├── pattern1.php ├── pattern2.php ├── permissions1.php ├── permissions2.php ├── recursive1.php ├── rmdir1.php ├── search1.php ├── search2.html ├── search3.php ├── search4.php ├── splitting1.php ├── splitting2.php ├── splitting3.php ├── splitting4.php ├── timestamps1.append ├── timestamps1.php ├── timestamps1.prepend ├── timestamps2.append ├── timestamps2.php ├── timestamps2.prepend └── timestamps3.php ├── 26_cli ├── colors1.out ├── colors1.php ├── colors1.prepend ├── colors2.php ├── colors2.skip ├── dom-explorer.php ├── dom-explorer.skip ├── dom-explorer.txt ├── getopt1.append ├── getopt1.args ├── getopt1.out ├── getopt1.php ├── getopt2.php ├── getopt3.txt ├── getopt4.txt ├── getopt5.txt ├── getopt6.txt ├── getopt7.txt ├── getopt8.php ├── getopt9.txt ├── intro1.txt ├── intro2.txt ├── intro3.out ├── intro3.php ├── intro3.prepend ├── intro4.txt ├── intro5.txt ├── intro6.txt ├── intro7.err ├── intro7.out ├── intro7.php ├── intro7.prepend ├── intro7.stdin ├── keyboard-ncurses.ini ├── keyboard-ncurses.php ├── keyboard-ncurses.skip ├── keyboard1.out ├── keyboard1.php ├── keyboard1.stdin ├── keyboard2.out ├── keyboard2.php ├── keyboard2.stdin ├── keyboard3.out ├── keyboard3.php ├── keyboard3.stdin ├── keyboard4.php ├── keyboard4.skip ├── line1.txt ├── line2.txt ├── line3.txt ├── line4.txt ├── line5.txt ├── line6.txt ├── parse1.args ├── parse1.out ├── parse1.php ├── parse2.php ├── passwords-ncurses.ini ├── passwords-ncurses.php ├── passwords-ncurses.skip ├── passwords1.php ├── passwords1.skip ├── passwords2.php ├── passwords2.skip ├── passwords3.php └── passwords3.skip ├── 27_packages ├── composer1.json ├── composer2.json ├── composer3.json ├── composer4.php ├── composer5.php └── pear1.php └── README.md /01_strings/capitalizing.out: -------------------------------------------------------------------------------- 1 | How do you do today? 2 | The Prince Of Wales 3 | -------------------------------------------------------------------------------- /01_strings/capitalizing.php: -------------------------------------------------------------------------------- 1 | 42 left. 2 |

3 | Deal More Cards -------------------------------------------------------------------------------- /01_strings/heredochtml.prepend: -------------------------------------------------------------------------------- 1 | d -------------------------------------------------------------------------------- /01_strings/index.php: -------------------------------------------------------------------------------- 1 | 4 | XML; 5 | ?> 6 | -------------------------------------------------------------------------------- /01_strings/storing1.append: -------------------------------------------------------------------------------- 1 | .--..-.-.--.---- -------------------------------------------------------------------------------- /01_strings/strrand2.php: -------------------------------------------------------------------------------- 1 | .emordnilap a ton si sihT -------------------------------------------------------------------------------- /01_strings/strrev.php: -------------------------------------------------------------------------------- 1 | I'M NOT YELLING! 2 | <a href="one.php">one</a> 3 | -------------------------------------------------------------------------------- /01_strings/strto.php: -------------------------------------------------------------------------------- 1 | one'); 4 | -------------------------------------------------------------------------------- /01_strings/substr-replace-negative.out: -------------------------------------------------------------------------------- 1 | My pet is a fish. 2 | My pet is a green dog. 3 | -------------------------------------------------------------------------------- /01_strings/substr-replace-solution.prepend: -------------------------------------------------------------------------------- 1 | out f -------------------------------------------------------------------------------- /01_strings/substr2.php: -------------------------------------------------------------------------------- 1 | t tree -------------------------------------------------------------------------------- /01_strings/substr3.php: -------------------------------------------------------------------------------- 1 | ree -------------------------------------------------------------------------------- /01_strings/substr4.php: -------------------------------------------------------------------------------- 1 | t tree 2 | out f 3 | -------------------------------------------------------------------------------- /01_strings/substr5.php: -------------------------------------------------------------------------------- 1 | hat tr 2 | tre 3 | -------------------------------------------------------------------------------- /01_strings/substr6.php: -------------------------------------------------------------------------------- 1 | message = "\ttabbed"; 5 | -------------------------------------------------------------------------------- /01_strings/tab-switch.out: -------------------------------------------------------------------------------- 1 | With Tabs:

	Message.
With Spaces:
 Message.
2 | -------------------------------------------------------------------------------- /01_strings/tab-unexpand.append: -------------------------------------------------------------------------------- 1 | PRINT A$ 2 | SELECT * FROM turtles 3 | -------------------------------------------------------------------------------- /01_strings/trim-solution.prepend: -------------------------------------------------------------------------------- 1 | Monkey face 2 | 1 monkey face 3 | -------------------------------------------------------------------------------- /01_strings/ucfirst.php: -------------------------------------------------------------------------------- 1 | turtle. a was there time a upon Once -------------------------------------------------------------------------------- /01_strings/wordrev2.append: -------------------------------------------------------------------------------- 1 | jabberwocky 2 | jabbe 3 | rwock 4 | y -------------------------------------------------------------------------------- /01_strings/wordwrap4.php: -------------------------------------------------------------------------------- 1 | 2.4 rounds up to the float 3 -------------------------------------------------------------------------------- /02_numbers/ceil.php: -------------------------------------------------------------------------------- 1 | 2.4 rounds down to the float 2 -------------------------------------------------------------------------------- /02_numbers/floor.php: -------------------------------------------------------------------------------- 1 | Your search returned 4 hits. -------------------------------------------------------------------------------- /02_numbers/pluralize.php: -------------------------------------------------------------------------------- 1 | 2.4 rounds to the float 2 -------------------------------------------------------------------------------- /02_numbers/round.php: -------------------------------------------------------------------------------- 1 | text(); 4 | -------------------------------------------------------------------------------- /03_datetime/calendar-use-text.prepend: -------------------------------------------------------------------------------- 1 | format('r'); -------------------------------------------------------------------------------- /03_datetime/date1.out: -------------------------------------------------------------------------------- 1 | Fri, 01 Feb 2013 14:23:33 -0500 2 | -------------------------------------------------------------------------------- /03_datetime/date1.out.regex: -------------------------------------------------------------------------------- 1 | /[A-Z][a-z][a-z], \d\d [A-Z][a-z][a-z] 2013 \d\d:\d\d:\d\d \+0000/ -------------------------------------------------------------------------------- /03_datetime/date1.php: -------------------------------------------------------------------------------- 1 | getTimestamp() === 163727103, "Epoch timestamp for four hours before GMT"); 3 | -------------------------------------------------------------------------------- /03_datetime/formatting.out: -------------------------------------------------------------------------------- 1 | 06/Feb/2013 2 | 06/Feb/2013 3 | -------------------------------------------------------------------------------- /03_datetime/formatting.out.regex: -------------------------------------------------------------------------------- 1 | @\d\d/[A-Z][a-z][a-z]/\d\d\d\d 2 | \d\d/[A-Z][a-z][a-z]/\d\d\d\d@ 3 | -------------------------------------------------------------------------------- /03_datetime/formatting.php: -------------------------------------------------------------------------------- 1 | format('d/M/Y'); 5 | -------------------------------------------------------------------------------- /03_datetime/getdate1.out: -------------------------------------------------------------------------------- 1 | February 4, 2013 2 | -------------------------------------------------------------------------------- /03_datetime/getdate1.out.regex: -------------------------------------------------------------------------------- 1 | /[A-Z][a-z]+ \d\d?, \d{4}/ 2 | -------------------------------------------------------------------------------- /03_datetime/getdate1.php: -------------------------------------------------------------------------------- 1 | March 10, 1975 -------------------------------------------------------------------------------- /03_datetime/getdate2.php: -------------------------------------------------------------------------------- 1 | 18:23:45 2 | 18:23:45 3 | -------------------------------------------------------------------------------- /03_datetime/getdatelocaltime.out.regex: -------------------------------------------------------------------------------- 1 | /\d\d:\d\d?:\d\d? 2 | \d\d:\d\d?:\d\d?/ 3 | -------------------------------------------------------------------------------- /03_datetime/gmmktime.append: -------------------------------------------------------------------------------- 1 | 2/4/2013 2 | -------------------------------------------------------------------------------- /03_datetime/localtime-mdy.out.regex: -------------------------------------------------------------------------------- 1 | @\d\d?/\d\d?/\d{4}@ 2 | -------------------------------------------------------------------------------- /03_datetime/localtime-mdy.php: -------------------------------------------------------------------------------- 1 | Wednesday -------------------------------------------------------------------------------- /03_datetime/mktime1.php: -------------------------------------------------------------------------------- 1 | format('d') . "\n"; 4 | } 5 | -------------------------------------------------------------------------------- /03_datetime/strtotime-edt.out: -------------------------------------------------------------------------------- 1 | Sunday, 12-Aug-12 14:00:00 EDT -------------------------------------------------------------------------------- /03_datetime/strtotime-mdt.out: -------------------------------------------------------------------------------- 1 | Sunday, 12-Aug-12 16:00:00 EDT -------------------------------------------------------------------------------- /03_datetime/strtotime-relative.out.regex: -------------------------------------------------------------------------------- 1 | /[A-Z][a-z]+, \d\d-[A-Z][a-z][a-z]-\d\d 00:00:00 UTC 2 | Wednesday, 12-Aug-15 14:00:00 UTC/ -------------------------------------------------------------------------------- /03_datetime/strtotime-time-and-date.out: -------------------------------------------------------------------------------- 1 | Monday, 12-May-14 00:00:00 UTC 2 | Monday, 12-May-14 00:00:00 UTC -------------------------------------------------------------------------------- /03_datetime/tz-2.out: -------------------------------------------------------------------------------- 1 | Friday, 15-Feb-13 14:54:27 EST 2 | Friday, 15-Feb-13 20:54:27 CET -------------------------------------------------------------------------------- /03_datetime/utime-id.php: -------------------------------------------------------------------------------- 1 | not 4 | [4] => to 5 | ) 6 | -------------------------------------------------------------------------------- /04_arrays/105.out: -------------------------------------------------------------------------------- 1 | Array 2 | ( 3 | [3] => whatever 4 | ) 5 | -------------------------------------------------------------------------------- /04_arrays/106.prepend: -------------------------------------------------------------------------------- 1 | array('strawberry','apple'), 3 | 'yellow' => array('banana')); 4 | -------------------------------------------------------------------------------- /04_arrays/16.php: -------------------------------------------------------------------------------- 1 | apple is colored red.
banana is colored yellow.
-------------------------------------------------------------------------------- /04_arrays/19.prepend: -------------------------------------------------------------------------------- 1 | array('strawberry','apple'), 3 | 'yellow' => array('banana')); 4 | -------------------------------------------------------------------------------- /04_arrays/20.prepend: -------------------------------------------------------------------------------- 1 | array('strawberry','apple'), 3 | 'yellow' => array('banana')); 4 | -------------------------------------------------------------------------------- /04_arrays/21.php: -------------------------------------------------------------------------------- 1 | $value) { 3 | // Act II 4 | } 5 | -------------------------------------------------------------------------------- /04_arrays/25.prepend: -------------------------------------------------------------------------------- 1 | = 0; $item--) { 3 | // ... 4 | } 5 | -------------------------------------------------------------------------------- /04_arrays/31.prepend: -------------------------------------------------------------------------------- 1 | 'a', 'foo' => 'b', 5 => 'c', 'bar' => 'd']; 3 | -------------------------------------------------------------------------------- /04_arrays/37.php: -------------------------------------------------------------------------------- 1 | 'a', 'foo' => 'b', 5 => 'c', 'bar' => 'd']; 3 | -------------------------------------------------------------------------------- /04_arrays/38.php: -------------------------------------------------------------------------------- 1 | 'a', 'foo' => 'b', 5 => 'c', 'bar' => 'd']; 3 | $offset = $length = 1; 4 | -------------------------------------------------------------------------------- /04_arrays/39.php: -------------------------------------------------------------------------------- 1 | 'a', 'foo' => 'b', 5 => 'c', 'bar' => 'd']; 3 | $offset = $length = 1; 4 | -------------------------------------------------------------------------------- /04_arrays/40.php: -------------------------------------------------------------------------------- 1 | 1000]; 3 | -------------------------------------------------------------------------------- /04_arrays/41.php: -------------------------------------------------------------------------------- 1 | apple 4 | [1] => banana 5 | [2] => coconut 6 | [4] => dates 7 | ) 8 | -------------------------------------------------------------------------------- /04_arrays/48.php: -------------------------------------------------------------------------------- 1 | apple 4 | [1] => banana 5 | ) 6 | -------------------------------------------------------------------------------- /04_arrays/51.php: -------------------------------------------------------------------------------- 1 | Perl 4 | [1] => PHP 5 | [2] => Python 6 | ) 7 | -------------------------------------------------------------------------------- /04_arrays/53.php: -------------------------------------------------------------------------------- 1 | a 4 | [b] => B 5 | [1] => A 6 | ) 7 | -------------------------------------------------------------------------------- /04_arrays/55.php: -------------------------------------------------------------------------------- 1 | '; 3 | $right = ''; 4 | 5 | $html = $left . join("$right,$left", $html) . $right; 6 | -------------------------------------------------------------------------------- /04_arrays/58.prepend: -------------------------------------------------------------------------------- 1 | =0 ; $i--) { 3 | // ... 4 | } 5 | -------------------------------------------------------------------------------- /04_arrays/79.prepend: -------------------------------------------------------------------------------- 1 | 'p', 'orange' => 'o']; 3 | $array = ['apple' => 'a']; 4 | -------------------------------------------------------------------------------- /04_arrays/96.out: -------------------------------------------------------------------------------- 1 | Baba 2 | O'Riley 3 | -------------------------------------------------------------------------------- /04_arrays/97.out: -------------------------------------------------------------------------------- 1 | Baba 2 | Bill 3 | O'Riley 4 | O'Reilly 5 | -------------------------------------------------------------------------------- /04_arrays/98.out: -------------------------------------------------------------------------------- 1 | Baba 2 | O'Riley 3 | -------------------------------------------------------------------------------- /04_arrays/99.out: -------------------------------------------------------------------------------- 1 | Baba 2 | Bill 3 | O'Riley 4 | O'Reilly 5 | -------------------------------------------------------------------------------- /04_arrays/book-collection.out: -------------------------------------------------------------------------------- 1 | Need it. -------------------------------------------------------------------------------- /04_arrays/foreach-fruits.out: -------------------------------------------------------------------------------- 1 | Apples are red. 2 | Bananas are yellow. 3 | Cantaloupes are beige. 4 | Dates are brown. 5 | -------------------------------------------------------------------------------- /04_arrays/fruits1.php: -------------------------------------------------------------------------------- 1 | 'Washington', 'Adams', 'Jefferson', 'Madison'); 4 | -------------------------------------------------------------------------------- /04_arrays/nonzero-pres.out: -------------------------------------------------------------------------------- 1 | 1: Washington 2 | 2: Adams 3 | 3: Jefferson 4 | 4: Madison 5 | -------------------------------------------------------------------------------- /04_arrays/nonzero-pres.prepend: -------------------------------------------------------------------------------- 1 | 'Washington', 'Adams', 'Jefferson', 'Madison'); 4 | -------------------------------------------------------------------------------- /04_arrays/nonzero-pres2.out: -------------------------------------------------------------------------------- 1 | 1: Washington 2 | 2: Adams 3 | 3: Jefferson 4 | 4: Madison 5 | -------------------------------------------------------------------------------- /04_arrays/nonzero-pres2.prepend: -------------------------------------------------------------------------------- 1 | $v) { 3 | if (! isset($$k)) { $$k = $v; } 4 | } 5 | -------------------------------------------------------------------------------- /05_variables/encode-unserialize.append: -------------------------------------------------------------------------------- 1 | '2 lbs.','butter' => '3 sticks')); -------------------------------------------------------------------------------- /05_variables/json-unserialize.append: -------------------------------------------------------------------------------- 1 | '2 lbs.','butter' => '3 sticks')); 3 | -------------------------------------------------------------------------------- /05_variables/print_r-recursive.php: -------------------------------------------------------------------------------- 1 | 'frank', 12.6, array(3, 4)); 3 | print_r($info); 4 | -------------------------------------------------------------------------------- /05_variables/shm1.prepend: -------------------------------------------------------------------------------- 1 | 103 -------------------------------------------------------------------------------- /05_variables/var-var.php: -------------------------------------------------------------------------------- 1 | 'frank', 12.6, array(3, 4)); 3 | var_dump($info); 4 | -------------------------------------------------------------------------------- /05_variables/var_export-recursive.php: -------------------------------------------------------------------------------- 1 | 'frank', 12.6, array(3, 4)); 3 | var_export($info); 4 | -------------------------------------------------------------------------------- /06_functions/array-sort.append: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /06_functions/call-user-func-array.append: -------------------------------------------------------------------------------- 1 | <em>Look over there!</em> -------------------------------------------------------------------------------- /06_functions/default-param-call-2.php: -------------------------------------------------------------------------------- 1 | pizza: beer 2 | pizza: 3 | -------------------------------------------------------------------------------- /06_functions/intro.append: -------------------------------------------------------------------------------- 1 | get('citrus')->peel(); 3 | -------------------------------------------------------------------------------- /07_objects/cloning1.php: -------------------------------------------------------------------------------- 1 | add($person); 7 | -------------------------------------------------------------------------------- /07_objects/overriding-properties4.php: -------------------------------------------------------------------------------- 1 | __data['fake_property'] = 'fake_data'; 4 | -------------------------------------------------------------------------------- /07_objects/overriding-properties5.php: -------------------------------------------------------------------------------- 1 | load_info('adam'); 4 | 5 | $dave = $adam; 6 | -------------------------------------------------------------------------------- /07_objects/static4.out: -------------------------------------------------------------------------------- 1 | 1,234.57 2 | 1,235 3 | -------------------------------------------------------------------------------- /07_objects/traits2.out: -------------------------------------------------------------------------------- 1 | PHP Cookbook -------------------------------------------------------------------------------- /07_objects/traits3.php: -------------------------------------------------------------------------------- 1 | ! 2 | -------------------------------------------------------------------------------- /08_fundamentals/buffer-output4.ini: -------------------------------------------------------------------------------- 1 | output_buffering = On 2 | -------------------------------------------------------------------------------- /08_fundamentals/buffer-output5.ini: -------------------------------------------------------------------------------- 1 | output_handler=mangle_email 2 | -------------------------------------------------------------------------------- /08_fundamentals/compress-output1.ini: -------------------------------------------------------------------------------- 1 | zlib.output_compression=1 2 | -------------------------------------------------------------------------------- /08_fundamentals/delete-cookie1.php: -------------------------------------------------------------------------------- 1 | 01234567890123456789 -------------------------------------------------------------------------------- /08_fundamentals/pages/8cf04a9734132302f96da8e113e80ce5: -------------------------------------------------------------------------------- 1 | bubbles2x4 -------------------------------------------------------------------------------- /08_fundamentals/pages/a94dc7d578c98d16eb719dbeefc705c3: -------------------------------------------------------------------------------- 1 | hi monkeys 2 | 3 | [Home] 4 | -------------------------------------------------------------------------------- /08_fundamentals/post-body1.php: -------------------------------------------------------------------------------- 1 | Subscribe?You are not subscribed -------------------------------------------------------------------------------- /09_forms/check2.prepend: -------------------------------------------------------------------------------- 1 | ! -------------------------------------------------------------------------------- /09_forms/getpost-post.prepend: -------------------------------------------------------------------------------- 1 | Hello, Twinkle! -------------------------------------------------------------------------------- /09_forms/hello.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /09_forms/select1.prepend: -------------------------------------------------------------------------------- 1 | 2 | 8: Mars, Scorpio
3 | -------------------------------------------------------------------------------- /10_databases/dba.append: -------------------------------------------------------------------------------- 1 | Message List


Start a New Thread@ 2 | -------------------------------------------------------------------------------- /10_databases/named-placeholders.prepend: -------------------------------------------------------------------------------- 1 | 2 | Leo
3 | Sagittarius
4 | Cancer
5 | Scorpio
6 | Pisces
7 | -------------------------------------------------------------------------------- /10_databases/prepare.prepend: -------------------------------------------------------------------------------- 1 | exec("CREATE TABLE users (id text, name text)"); 4 | -------------------------------------------------------------------------------- /10_databases/unique-mysql.min-version: -------------------------------------------------------------------------------- 1 | 20.0.0 2 | -------------------------------------------------------------------------------- /10_databases/unique-sqlite.prepend: -------------------------------------------------------------------------------- 1 | Take the A Train -------------------------------------------------------------------------------- /11_sessions/trans-1.php: -------------------------------------------------------------------------------- 1 | Take the A Train'; 3 | -------------------------------------------------------------------------------- /11_sessions/trans-2.out.regex: -------------------------------------------------------------------------------- 1 | @Take the A Train@ -------------------------------------------------------------------------------- /11_sessions/trans-2.php: -------------------------------------------------------------------------------- 1 | Take the A Train 2 | -------------------------------------------------------------------------------- /12_xml/address-book.out: -------------------------------------------------------------------------------- 1 | David Sklar 2 | Adam Trachtenberg 3 | -------------------------------------------------------------------------------- /12_xml/content-encoding1.php: -------------------------------------------------------------------------------- 1 | G"odel, Escher, Bach -------------------------------------------------------------------------------- /12_xml/content-encoding5.php: -------------------------------------------------------------------------------- 1 | David Sklar 2 | Adam Trachtenberg 3 | -------------------------------------------------------------------------------- /12_xml/geb.php: -------------------------------------------------------------------------------- 1 | formatOutput = true; 3 | -------------------------------------------------------------------------------- /12_xml/gen-dom12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHP Cookbook 4 | 5 | -------------------------------------------------------------------------------- /12_xml/gen-dom3.txt: -------------------------------------------------------------------------------- 1 | $dom = new DOMDocument('1.0'); -------------------------------------------------------------------------------- /12_xml/gen-dom4.txt: -------------------------------------------------------------------------------- 1 | $book_element = $dom->createElement('book'); 2 | $book = $dom->appendChild($book_element); -------------------------------------------------------------------------------- /12_xml/gen-dom5.txt: -------------------------------------------------------------------------------- 1 | $title_element = $dom->createElement('title'); 2 | $title = $book->appendChild($title_element); -------------------------------------------------------------------------------- /12_xml/gen-dom6.txt: -------------------------------------------------------------------------------- 1 | $text_node = $dom->createTextNode('PHP Cookbook'); 2 | $title->appendChild($text_node); -------------------------------------------------------------------------------- /12_xml/gen-dom8.txt: -------------------------------------------------------------------------------- 1 | $title->setAttribute('edition', '3'); -------------------------------------------------------------------------------- /12_xml/gen-dom9.xml: -------------------------------------------------------------------------------- 1 | PHP Cookbook 2 | -------------------------------------------------------------------------------- /12_xml/intro1.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /12_xml/parse-basic1.xml: -------------------------------------------------------------------------------- 1 | David 2 | -------------------------------------------------------------------------------- /12_xml/parse-basic2.txt: -------------------------------------------------------------------------------- 1 | $firstname 2 | -------------------------------------------------------------------------------- /12_xml/parse-basic3.out: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /12_xml/parse-basic5.out: -------------------------------------------------------------------------------- 1 | address-book.out -------------------------------------------------------------------------------- /12_xml/parse-basic6.out: -------------------------------------------------------------------------------- 1 | address-book.out -------------------------------------------------------------------------------- /12_xml/parse-basic6.php: -------------------------------------------------------------------------------- 1 | person as $person) { 3 | print "$person->firstname $person->lastname\n"; 4 | } -------------------------------------------------------------------------------- /12_xml/parse-basic6.prepend: -------------------------------------------------------------------------------- 1 | book -------------------------------------------------------------------------------- /12_xml/parse-complex3.prepend: -------------------------------------------------------------------------------- 1 | load(__DIR__ . '/parse-complex2.xml'); 4 | 5 | 6 | -------------------------------------------------------------------------------- /12_xml/parse-xml1.out: -------------------------------------------------------------------------------- 1 | Sklar 2 | Trachtenberg 3 | Christiansen 4 | Torkington 5 | -------------------------------------------------------------------------------- /12_xml/parse-xml2.prepend: -------------------------------------------------------------------------------- 1 | '; -------------------------------------------------------------------------------- /12_xml/parse-xml4.php: -------------------------------------------------------------------------------- 1 | read()) { 4 | /* Process XML */ 5 | } 6 | -------------------------------------------------------------------------------- /12_xml/parse-xml4.prepend: -------------------------------------------------------------------------------- 1 | open(__DIR__ . '/card-catalog.xml'); 4 | -------------------------------------------------------------------------------- /12_xml/parse-xml5.prepend: -------------------------------------------------------------------------------- 1 | open(__DIR__ . '/card-catalog.xml'); 4 | -------------------------------------------------------------------------------- /12_xml/parse-xml6.out: -------------------------------------------------------------------------------- 1 | 1565926811 2 | 0596003137 3 | -------------------------------------------------------------------------------- /12_xml/parse-xml6.prepend: -------------------------------------------------------------------------------- 1 | Sklar 2 | Trachtenberg 3 | Christiansen 4 | Torkington 5 | -------------------------------------------------------------------------------- /12_xml/parse-xml8.out: -------------------------------------------------------------------------------- 1 | card-catalog.out -------------------------------------------------------------------------------- /12_xml/parse-xml8.prepend: -------------------------------------------------------------------------------- 1 | David Sklar 2 | Adam Trachtenberg 3 | -------------------------------------------------------------------------------- /12_xml/validate1.out.regex: -------------------------------------------------------------------------------- 1 | /.+is valid/ 2 | -------------------------------------------------------------------------------- /12_xml/validate2.out.regex: -------------------------------------------------------------------------------- 1 | validate1.out.regex -------------------------------------------------------------------------------- /12_xml/validate3.out.regex: -------------------------------------------------------------------------------- 1 | validate1.out.regex -------------------------------------------------------------------------------- /12_xml/write-rss4.out: -------------------------------------------------------------------------------- 1 | write-rss1.out -------------------------------------------------------------------------------- /12_xml/xslt-functions1.php: -------------------------------------------------------------------------------- 1 | registerPHPFunctions(); 4 | -------------------------------------------------------------------------------- /12_xml/xslt-functions3.php: -------------------------------------------------------------------------------- 1 | registerPHPFunctions(); 4 | -------------------------------------------------------------------------------- /12_xml/xslt-functions4.out: -------------------------------------------------------------------------------- 1 | Mon Jul 22 06:01:10 2014 -------------------------------------------------------------------------------- /12_xml/xslt-functions4.out.regex: -------------------------------------------------------------------------------- 1 | /<\?xml version="1.0"\?> 2 | [a-z]{3} [a-z]{3} \d\d \d\d:\d\d:\d\d \d{4}/i -------------------------------------------------------------------------------- /12_xml/xslt-params4.xsl: -------------------------------------------------------------------------------- 1 | San Francisco 2 | -------------------------------------------------------------------------------- /12_xml/xslt-transform3.prepend: -------------------------------------------------------------------------------- 1 | transformToXML($xml))) { 3 | // an error occurred 4 | } 5 | -------------------------------------------------------------------------------- /12_xml/xslt-transform4.prepend: -------------------------------------------------------------------------------- 1 | setConfig(array('timeout' => 20)); 3 | 4 | -------------------------------------------------------------------------------- /14_rest-server/clean2.php: -------------------------------------------------------------------------------- 1 | books 4 | [1] => 9781449363758 5 | ) 6 | -------------------------------------------------------------------------------- /14_rest-server/contenttype1.http: -------------------------------------------------------------------------------- 1 | http://api.example.com/people/rasmus.json 2 | http://api.example.com/people/rasmus.xml 3 | -------------------------------------------------------------------------------- /14_rest-server/contenttype10.php: -------------------------------------------------------------------------------- 1 | HTTP/1.1 204 No Content 2 | -------------------------------------------------------------------------------- /14_rest-server/get1.http: -------------------------------------------------------------------------------- 1 | GET /v1/jobs/123 HTTP/1.1 2 | Host: api.example.com 3 | -------------------------------------------------------------------------------- /14_rest-server/get6.php: -------------------------------------------------------------------------------- 1 | 2 | Rasmus 3 | Lerdorf 4 | 5 | -------------------------------------------------------------------------------- /14_rest-server/put3.http: -------------------------------------------------------------------------------- 1 | HTTP/1.1 204 No Content 2 | -------------------------------------------------------------------------------- /14_rest-server/resource2.php: -------------------------------------------------------------------------------- 1 | 4 | [1] => 9781449363758 5 | ) 6 | -------------------------------------------------------------------------------- /15_automation/ajax-json.out: -------------------------------------------------------------------------------- 1 | [{"type":"appetizer","dish":"Chicken Soup"}, 2 | {"type":"main course","dish":"Fried Monkey Brains"}] -------------------------------------------------------------------------------- /15_automation/article.html: -------------------------------------------------------------------------------- 1 | This is a sample article. Whee. 2 | -------------------------------------------------------------------------------- /15_automation/bad.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | I love monkeys. 4 | -------------------------------------------------------------------------------- /15_automation/elephant.html: -------------------------------------------------------------------------------- 1 | elephant 2 | elephant 3 | -------------------------------------------------------------------------------- /15_automation/fresh.out: -------------------------------------------------------------------------------- 1 | No URL provided. 2 | -------------------------------------------------------------------------------- /15_automation/html2text.prepend: -------------------------------------------------------------------------------- 1 | I love computer books. 2 | I love computer books. -------------------------------------------------------------------------------- /15_automation/tidy-xhtml.append: -------------------------------------------------------------------------------- 1 | logout(); 3 | -------------------------------------------------------------------------------- /16_services/ldap-auth-start.php: -------------------------------------------------------------------------------- 1 | start(); 3 | -------------------------------------------------------------------------------- /16_services/ldap-auth-user.php: -------------------------------------------------------------------------------- 1 | Click Here! 2 | -------------------------------------------------------------------------------- /18_security/session-regenerate.php: -------------------------------------------------------------------------------- 1 | Welcome back, <me>.

-------------------------------------------------------------------------------- /18_security/xss.prepend: -------------------------------------------------------------------------------- 1 | '; -------------------------------------------------------------------------------- /19_i18n/currency-message.out: -------------------------------------------------------------------------------- 1 | $5,549.30 in and -$25.95 out -------------------------------------------------------------------------------- /19_i18n/currency-number.out: -------------------------------------------------------------------------------- 1 | $5,549.30 in and -€25.95 out -------------------------------------------------------------------------------- /19_i18n/datetime-format-all.min-version: -------------------------------------------------------------------------------- 1 | 5.5.0 2 | -------------------------------------------------------------------------------- /19_i18n/datetime-formatobject.min-version: -------------------------------------------------------------------------------- 1 | 5.5.0 2 | -------------------------------------------------------------------------------- /19_i18n/datetime-formatter.out: -------------------------------------------------------------------------------- 1 | Monday, August 19, 2013 at 4:17:12 PM Eastern Daylight Time -------------------------------------------------------------------------------- /19_i18n/datetime-formatter.out.regex: -------------------------------------------------------------------------------- 1 | @Monday, August 19, 2013 at \d:17:12 PM (GMT|Eastern Daylight Time)@ -------------------------------------------------------------------------------- /19_i18n/datetime-message-formatpattern.out: -------------------------------------------------------------------------------- 1 | Maintenant: lundi 19 août 2013 -------------------------------------------------------------------------------- /19_i18n/datetime-message.out: -------------------------------------------------------------------------------- 1 | It is 4:17 PM on Aug 19, 2013. -------------------------------------------------------------------------------- /19_i18n/datetime-message.out.regex: -------------------------------------------------------------------------------- 1 | @It is \d:17 PM on Aug 19, 2013.@ 2 | -------------------------------------------------------------------------------- /19_i18n/defaultlocale1.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /19_i18n/images3.err: -------------------------------------------------------------------------------- 1 | l10n error: locale: en_US, image: 'cancel.png' 2 | -------------------------------------------------------------------------------- /19_i18n/images3.out: -------------------------------------------------------------------------------- 1 | Cancel -------------------------------------------------------------------------------- /19_i18n/localefromhttp.append: -------------------------------------------------------------------------------- 1 | 1.004E4 2 | 1:04 3 | 15th 4 | 1.358 5 | -------------------------------------------------------------------------------- /19_i18n/numbers-other.out: -------------------------------------------------------------------------------- 1 | $3.33, 333% -------------------------------------------------------------------------------- /19_i18n/numbers.out: -------------------------------------------------------------------------------- 1 | 5,327 / 98 = 54.357 2 | 5 327 / 98 = 54,357 3 | -------------------------------------------------------------------------------- /19_i18n/resources-bundle-use.out: -------------------------------------------------------------------------------- 1 | My favorite food is candy. 2 | -------------------------------------------------------------------------------- /19_i18n/resources-serialized-use.out: -------------------------------------------------------------------------------- 1 | My favorite food is candy. 2 | -------------------------------------------------------------------------------- /19_i18n/text1-named.min-version: -------------------------------------------------------------------------------- 1 | 5.5.0 -------------------------------------------------------------------------------- /19_i18n/text1-named.out: -------------------------------------------------------------------------------- 1 | I like to eat eggs and water. -------------------------------------------------------------------------------- /19_i18n/text1.out: -------------------------------------------------------------------------------- 1 | My favorite food is candy. 2 | My favourite food is sweets. 3 | -------------------------------------------------------------------------------- /19_i18n/utf84.append: -------------------------------------------------------------------------------- 1 | [ERROR][8][Undefined variable: html][err-all.php:16] 2 | -------------------------------------------------------------------------------- /20_errors/exception1.prepend: -------------------------------------------------------------------------------- 1 | display_errors =off 2 | log_errors =on 3 | -------------------------------------------------------------------------------- /20_errors/hiding2.php: -------------------------------------------------------------------------------- 1 | error_log = /var/log/php.error.log 2 | -------------------------------------------------------------------------------- /20_errors/hiding4.php: -------------------------------------------------------------------------------- 1 | USD to EUR: \d+\.\d+
EUR to USD: \d+\.\d+
@ 2 | -------------------------------------------------------------------------------- /21_engineering/router-currency.prepend: -------------------------------------------------------------------------------- 1 | .+'; 3 | $preg_pattern = addcslashes($ereg_pattern, '/'); 4 | -------------------------------------------------------------------------------- /23_regex/ereg7.out: -------------------------------------------------------------------------------- 1 | 2 | Deprecated: Function eregi() is deprecated in {{*}} on line 2 3 | -------------------------------------------------------------------------------- /23_regex/ereg7.php: -------------------------------------------------------------------------------- 1 | . \ + * ? ^ $ [ ] () { } < > = ! | : 2 | -------------------------------------------------------------------------------- /23_regex/escaping5.out: -------------------------------------------------------------------------------- 1 | match! -------------------------------------------------------------------------------- /23_regex/escaping5.prepend: -------------------------------------------------------------------------------- 1 | Ping 2 | Some stuff 3 |

Pong

4 | phasis 5 | -------------------------------------------------------------------------------- /23_regex/func1.out: -------------------------------------------------------------------------------- 1 | The <b> tag makes text bold: <b>bold</b> -------------------------------------------------------------------------------- /23_regex/func3-old.out: -------------------------------------------------------------------------------- 1 | The <b> tag makes text bold: bold 2 | -------------------------------------------------------------------------------- /23_regex/func3.out: -------------------------------------------------------------------------------- 1 | The <b> tag makes text bold: bold 2 | -------------------------------------------------------------------------------- /23_regex/greed1.append: -------------------------------------------------------------------------------- 1 | emphasized sections 3 | preg_match_all('@.+?@', $html, $matches); 4 | -------------------------------------------------------------------------------- /23_regex/greed1.prepend: -------------------------------------------------------------------------------- 1 | alice bobfoocharlie'; 3 | -------------------------------------------------------------------------------- /23_regex/greed2.append: -------------------------------------------------------------------------------- 1 | emphasized sections 3 | preg_match_all('@.+@U', $html, $matches); 4 | -------------------------------------------------------------------------------- /23_regex/greed2.prepend: -------------------------------------------------------------------------------- 1 | alice bobfoocharlie'; 3 | -------------------------------------------------------------------------------- /23_regex/html-to-decode.html: -------------------------------------------------------------------------------- 1 | The <b> tag makes text bold: <b>bold</b> 2 | -------------------------------------------------------------------------------- /23_regex/html1.out: -------------------------------------------------------------------------------- 1 | Heading: Ping 2 | Heading: Pong 3 | -------------------------------------------------------------------------------- /23_regex/html2.out: -------------------------------------------------------------------------------- 1 | Text: Some stuff 2 | Text: phasis 3 | -------------------------------------------------------------------------------- /23_regex/intro1.append: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /23_regex/intro1.prepend: -------------------------------------------------------------------------------- 1 | beep
  • hi
  • '; 3 | $bold = 'foo'; 4 | -------------------------------------------------------------------------------- /23_regex/intro4.out: -------------------------------------------------------------------------------- 1 | The image files are: cuddly.gif,cute.jpg -------------------------------------------------------------------------------- /23_regex/records1.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpcookbook/code-3ed/09666eefdc5b299ca3399ce9c849301d5d1c7373/23_regex/records1.skip -------------------------------------------------------------------------------- /23_regex/records2.txt: -------------------------------------------------------------------------------- 1 | 1) Gödel 2 | 2) Escher 3 | 3) Bach 4 | -------------------------------------------------------------------------------- /23_regex/records3.append: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /24_files/escaping1.php: -------------------------------------------------------------------------------- 1 | Temporary data will be stored in /tmp/data-GawVoL 2 | -------------------------------------------------------------------------------- /24_files/temporary3.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /25_directories/copying1.append: -------------------------------------------------------------------------------- 1 | 3 | bool(false) 4 | ["b"]=> 5 | bool(false) 6 | } 7 | -------------------------------------------------------------------------------- /26_cli/getopt6.txt: -------------------------------------------------------------------------------- 1 | % program.php -a -b sneeze 2 | -------------------------------------------------------------------------------- /26_cli/getopt7.txt: -------------------------------------------------------------------------------- 1 | array(2) { 2 | ["a"]=> 3 | bool(false) 4 | ["b"]=> 5 | string(6) "sneeze" 6 | } 7 | -------------------------------------------------------------------------------- /26_cli/getopt8.php: -------------------------------------------------------------------------------- 1 | php -R 'print strip_tags($argn) . "\n"; ' < index.html 2 | -------------------------------------------------------------------------------- /26_cli/parse1.args: -------------------------------------------------------------------------------- 1 | /dev/null 2 | -------------------------------------------------------------------------------- /26_cli/parse1.out: -------------------------------------------------------------------------------- 1 | I am {{*}} and report that the size of /dev/null is 0 bytes. -------------------------------------------------------------------------------- /26_cli/passwords-ncurses.ini: -------------------------------------------------------------------------------- 1 | extension=ncurses.so -------------------------------------------------------------------------------- /26_cli/passwords1.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpcookbook/code-3ed/09666eefdc5b299ca3399ce9c849301d5d1c7373/26_cli/passwords1.skip -------------------------------------------------------------------------------- /26_cli/passwords2.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpcookbook/code-3ed/09666eefdc5b299ca3399ce9c849301d5d1c7373/26_cli/passwords2.skip -------------------------------------------------------------------------------- /26_cli/passwords3.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpcookbook/code-3ed/09666eefdc5b299ca3399ce9c849301d5d1c7373/26_cli/passwords3.skip -------------------------------------------------------------------------------- /27_packages/composer1.json: -------------------------------------------------------------------------------- 1 | { 2 | "require" : { 3 | "phpunit/php-code-coverage": "2.*" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /27_packages/composer2.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "phpunit/php-code-coverage": "2.1.*" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /27_packages/composer5.php: -------------------------------------------------------------------------------- 1 |