projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
* Fixed bug which caused GZIP encoded archives to be decoded
[m6w6/ext-http]
/
docs
/
examples
/
extract.php
diff --git
a/docs/examples/extract.php
b/docs/examples/extract.php
index 32aa173ae859d29e282c93a1b0b51307371cf2c6..466c544b7f38398f058407a7734db75a2447658c 100644
(file)
--- a/
docs/examples/extract.php
+++ b/
docs/examples/extract.php
@@
-1,4
+1,7
@@
<?php
+/**
+ * extract examples from tutorial.txt
+ */
if (preg_match_all('/\n- ([^\n]+).*?(\<\?.+?\?\>)/s', file_get_contents($_SERVER['argv'][1]), $matches)) {
for ($i = 0; $i < count($matches[0]); $i++) {