Recommended Answers
Jump to PostWhy do you want to do that? Generally speaking, this is a bad plan. You are far better of creating an array containing all your names and using them like
$array["name1"]
.
Jump to PostI think what youre asking is for this:
This is assuming your text document is split by "." as you have above, so...
Joe Cren(.)Ryan Troop(.)Eddie Vedder(.)Led Zepplin(.) //or something similarif you do:
$array = explode("(.)", fread($fp, filesize($filename))); //this array is populated ['Joe Cren', 'Ryan Troop', …
Jump to PostGive an example of the file contents and an example of what you need with regard to variables. This is a little confusing.
All 12 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.