![]() |
Make array with txt file content
Good day to you all,
Here is a piece of code from my login script. PHP Code:
like : Jack=>Daniel=>Director/index.php Angolina=>Joli=>Pretty/index.php Mike=>Lee=>User/index.php Thanks ! Franck |
You could use fscanf...
|
I would use
explode to do this, although fscanf looks a lot easier - I've never seen it before and I'd recommend it now!PHP Code:
explosion method is much more memory intensive but shows you how a file could be parsed. fscanf is much more simple to use. |
| All times are GMT. The time now is 09:08 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0