Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 452 Bytes

README.md

File metadata and controls

4 lines (4 loc) · 452 Bytes

read-and-sort PHP

Read file contents and use a regular expression to find all occurrences of text in square brackets, and print that text to the console. contains and INDEX1.PHP file which when run reads a second file INDEX2.PHP containing a lorem text with some of the texts in square brackets. The INDEX1.PHP file reads the contents of the second in this case the INDEX2.PHP and echo its contents as well as print out the words in square brackets.