Re: [PHP] array problem
The function fgetcsv() returns an array. http://php.net/manual/en/function.fgetcsv.php On Fri, Sep 9, 2011 at 9:00 AM, Marc Fromm wrote: > I am reading a csv file into an array. The csv file. > > users.csv file contents: > w12345678,a > w23456789,b > w34567890,c > >$csvfilename = "users.csv"; > $handle = fopen($csvfilename, "r"); >if($handle) { >while (($line = > fgetcsv($handle, 1000, ",")) !== FALSE) { >$arrUsers[] > = $line; >} >fclose($handle); >} > > When I echo out the elements in the elements in the array $arrUsers I get: > Array > Array > Array > > foreach ($arrUsers as $user){ >echo $user . ""; > } > > I can't figure out why the word Array is replacing the actual data. > >
[PHP] Repetitive answers . . .
I'm new to this email list . . . But is it customary to answer a question after it's already been adequately answered? Not trying to step on any toes. I just think if I were asking the question, it would be unpleasant to continue receiving answers, especially the same answer, after receiving one that is prompt, accurate, precise, concise, and adequate. Likewise, if I had answered the question -- promptly, accurately, precisely, concisely, adequately -- I would find it equally, if not more, unpleasant to see my answer displaced, or buried, by a wash of similar answers. Of course, it's always good to confirm things. But can't the absence of objection serve as confirmation? Does anybody feel the same way? NOTE: There could be lag caused by network and server technologies. Perhaps answers arrive during the time it takes a person to prepare an answer. These are forgivable.
Re: [PHP] Re: Repetitive answers . . .
I guess so. On Fri, Sep 9, 2011 at 10:34 AM, Marc Guay wrote: > That low-hanging fruit is too hard for some to resist... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Re: Repetitive answers . . .
Is there a way to reconfigure gmail settings to prevent this?
Re: [PHP] Re: Repetitive answers . . .
On Wed, Sep 14, 2011 at 11:59 AM, Govinda wrote: >> As for duplicate answers..., > >> [snip] > > > Also newbies may tend to like the multiples answers.. for the different > perspectives, as Dan said, but also when they are exact dupe answers - > because then the newbie knows the answer is definitive.. and then stops > asking the list.. and starts doing what work is called for. > > -Govinda > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > That's a good point. The absence of objection to a provided answer doesn't necessarily make it definitive since it could just be the masses passed over the conversation. Therefore, yes, duplicate answers are a good thing. Thanks everybody for your patience in helping this mailing list newcomer understand how things work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Repetitive answers . . .
On Thu, Sep 15, 2011 at 5:46 PM, Jason Pruim > > I've always thought that getting a couple fairly similar answers to the same > question helped to validate the answer for someone who is in the early > process of learning ;) >> >> -nathan > > Yeah, you know, I think you are right! I'd like to answer this question the same way, even though half a dozen have already answered it the same way. But let me put a spin on it: ammo = $ammo; } public function flingAt($target) { $target->flingAlert($this->ammo); } } $me = new baboon($information); $you = new baboon(); $me->flingAt($you); // I hope everyone finds this more humorous than offensive. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Repetitive answers . . .
On Fri, Sep 16, 2011 at 12:35 AM, tamouse mailing lists > > My baboon is offended. > class baboon extends human { $ammo = ''; public __construct($ammo) { $this->ammo = $ammo; } public function flingAt($target) { $target->flingAlert($this, $this->ammo); } public function flingAlert($source, $missile) { $hit = rand(0,1); if ($hit == 1) { $this->screech(); } else { $this->howl(); } // regardless, return the favor $this->flingAt($souce); } private function howl() { echo "Oooaa-oooaa"; } private function screech() { echo "E"; } } $ammo = "stuff"; $me = new baboon($ammo); $you = new baboon($ammo); $me->flingAt($you); // :) This is pretty fun :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What would you like to see in most in a text editor?
On Fri, Sep 16, 2011 at 12:51 AM, Marco Lanzotti wrote: > Il 13/09/2011 21:56, Brad Huskins ha scritto: >> So I would like to get some feedback on what features people would >> most want, since I am still at a very flexible stage in development. > I wouldn't want a text editor. I'd want an IDE. debugging - runtime control, watches, breakpoints, call stack, etc syntax highlighting project level intelligence (Ctrl+Click on usage of a function, variable, class, etc takes you to the definition, as ONE example) phpdoc, javadoc, etc auto-completion and referencing function/parameter hinting integration with Git task list generated from customizable keyword comments like TODO multiple coding languages (PHP, CSS, Javascript, HTML, SQL, etc, etc) find and replace within selection, file, files, directories, etc. (with regex too) FAST (unlike Dreambeaver) Netbeans and Eclipse have all/many of these features. I started out with Notepad++. It's a text editor trying really really hard to be an IDE. I mostly use Netbeans. But in the future I will primarily use Eclipse as I do more work in Java, Android, and Python. Love the IDE for projects. Never going back. I still use Notepad++ for editing config files. -- Josh -- Web Developer PHP, SQL, HTML, CSS, Javascript, AJAX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php