SitePoint Sponsor |
|
User Tag List
Results 51 to 67 of 67
-
Jun 21, 2009, 22:20 #51
- Join Date
- Feb 2001
- Location
- Melbourne Australia
- Posts
- 6,282
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Please don't use goto
That manual page has to be an april fool's joke or something. It even has an xkcd cartoon on it. Please tell me they didn't add goto to PHP!
kthxbye[mmj] My magic jigsaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Bit Depth Blog · Twitter · Contact me
Neon Javascript Framework · Jokes · Android stuff
-
Jun 22, 2009, 02:29 #52
- Join Date
- Nov 2007
- Posts
- 74
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Personally I think php.net is one of the most userfriendly docs around. The main reason for this is the ability for users to add comments. In the beginning I often found alternative explanations among the comments, you can find alternative ways to solve problem, etc.
Reading the doc for .net or java is harder. Languages like javascript or html are poorly documented, and are full of browser variations that you wont find documentet in one place.
The only thing I lack, it would be a better description of the language itself. PHP has its weird quircks here and there, but its not a big deal. We'll manage.
I might be wrong, but I think php.net is the best language documentation ever.
-
Jun 22, 2009, 03:03 #53
-
Jun 22, 2009, 04:15 #54
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Simply cant stay in front of computers specially for PHP Programming without having a window of PHP Manual opened. It is really a needful sometimes specially when you know the function name but not sure about the arguments of the function and how to use it with other dependent functions.
Mistakes are proof that you are trying.....
------------------------------------------------------------------------
PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5
-
Jun 22, 2009, 04:29 #55
Depending on which IDE you use, you might be able to use some sort of code completion to help with that sort of thing. I use Netbeans 6.5, so when I type in strstr and then hit space bar, I am presented with a dropdown menu that shows the various options available:
strstr($haystack, $needle)
strstr($haystack, $needle, $before_needle)
This saves me from requiring the manual for that sort of thing, as the included dropdown also provides a description of those elements ($haystack, $needle, etc..) So I would look into seeing if your IDE has that kind of functionality.
-
Jun 22, 2009, 04:58 #56
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes of course. I am talking the situation when someone don't have such IDEs. And another thing i am trying to say is AFAIK, the IDEs can't say the dependencies of the function. Like for example mysql_query() takes two parameters (though second is optional but still for instance) and the IDE just shows 'string query;', '[resource link_identifier]'. So to know where the resource identifier can be taken from can only be known from some examples and if you go to PHP Manual there will be an example and also few more lines of descriptions.
But I still agree that using IDEs can save a lot of time.Mistakes are proof that you are trying.....
------------------------------------------------------------------------
PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5
-
Jun 22, 2009, 07:45 #57
I always find the manual most useful as a reference when working with dates/times, but there's also tons of other useful things of course. Hopefully I get my date/time functions smoothed out enough in my library and I won't need to look at the manual anymore
-
Jun 22, 2009, 09:18 #58
- Join Date
- Nov 2005
- Location
- Omaha, NE
- Posts
- 335
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I haven't had a chance to do PHP dev in a while, but I've always liked PHP as a language and I've always liked PHP.net. I like it better than the MSDN site even. I find it is very easy to use as a quick reference guide. When I can't quite remember the function name or the arguments for a function, PHP.net is quick and the user examples have been very helpful to me. I don't recall any trolling or flaming in the notes either.
-
Jun 22, 2009, 11:57 #59
- Join Date
- Apr 2008
- Location
- Temecula, CA
- Posts
- 278
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Jun 22, 2009, 14:52 #60
- Join Date
- Jun 2004
- Location
- Williamsport, PA
- Posts
- 87
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I use the PHP manual constantly when the naming conventions (or lack thereof) of PHP functions get confused in my head : )
My sites:
Reich Consulting
-
Jun 22, 2009, 19:22 #61
- Join Date
- Sep 2005
- Posts
- 68
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That cartoon just made my day. First one I've seen in the PHP manual..
http://php.net/manual/en/control-structures.goto.php
Does goto allow you to jump into a different scope? Cause if it does, that would suck for debugging.Fiji Web Design - Enterprise Web Design
-
Jun 22, 2009, 23:07 #62
-
Jun 22, 2009, 23:22 #63
- Join Date
- Jun 2009
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I always give a careful consideration to 'Return' type and value. There were few occasions the value returned were different from what I thought.
-
Jun 23, 2009, 03:02 #64
As far as I am aware, goto is restricted. To quote yet-to-be-published changes made to the manual (emphasis my own):
This is not a full unrestricted goto. The target label must be within the same context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any sort of loop or switch structure. You may jump out of these, and a common use is to use a goto in place of a multi-level break.
-
Jun 24, 2009, 09:06 #65
- Join Date
- Aug 2008
- Location
- NC
- Posts
- 135
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I find myself checking the manual at least once a day. Although, I haven't actually sat down and tried to read it straight through.
-
Jun 24, 2009, 16:39 #66
My mother reads it to me every night before I go to bed
-
Jun 25, 2009, 02:27 #67
- Join Date
- Jun 2009
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Reading manual is always a useful one.. You will come to know about the basic operations which helps you to do further.
Bookmarks