php curly braces into array

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-16T03:35:22Z Indexed on 2010/04/16 3:43 UTC
Read the original article Hit count: 260

Filed under:
|

Hi, I would like to check a opened .txt file for braces that open and close like below:

file {

nextopen {
//content
}

}

no this is not my own language or anything, but I want to get say the nextopen function and all the contents inside the brackets, and all the stuff from inside the file function and add it to an array if you know what i mean. so all the content inside the braces will be in an array. if you know how to do this please reply.

© Stack Overflow or respective owner

Related posts about php

Related posts about brackets