# Reading \[PHP\] in a textfile?

**URL:** https://forum.kirupa.com/t/reading-php-in-a-textfile/237611
**Category:** Uncategorized
**Created:** [August 31, 2007, 11:20pm UTC](https://forum.kirupa.com/t/reading-php-in-a-textfile/237611 "2007-08-31T23:20:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GPP](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@GPP](https://forum.kirupa.com/u/GPP)
#### Post date: [August 31, 2007, 11:20pm UTC](https://forum.kirupa.com/t/reading-php-in-a-textfile/237611/1 "2007-08-31T23:20:52Z")

</div>

I was wondering if you guys could help me reading between a “[]” in a text file in PHP

the text file is setup like so:

```auto

[1] [eating]
[2] [drinking]
[3] [rofling]
[4] [loling]
[5] [what]
[6] [noob]
[7] [ahaha]

```

I want the script to read through the first “[]” and find numbers greater than 3

So every line with the first “[]” over 3 will be echoed out  
So in this text file every “[]” over 3 will be read so this is what it will print:

```auto

[4] [loling]
[5] [what]
[6] [noob]
[7] [ahaha]

```

will be read

:nerd: Thank fo your help
