Jump to content

how can I get the content of a file which is the multi comment line?


gudfry

Recommended Posts

hello there;

           

              I 'am looking for someone who could give an idea about function using strpos, substr, strlen, I am just new in PHP and it hard for me how can i start. I want a function to distinguish or to read a multi-comment line of file.

 

example : I have this in my file;

 

          comment line as an input /                    ouput

 

/* $Author : Chad */ [/b]          this will return Author : Chad

 

/* Author : chad */          this will return false

/* $chad : Author */        this will retun chad : Author.

 

/* $ : Chad *                    this will return false.

 

/* : Chad /*                      this will retun false.

 

/* $Author : *                  this will return false.

 

/* $chad :  *                    this will return false.

           

is there someone who has an idea??  pls help me

 

thank in advance

 

:?:  :?:

Perhaps if you give us one example of a 'multi-comment line' and tell us just what you want to do with it, we can suggest what functions(s) are needed to produce the actual output you want from that example multi-comment line.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.