Re: What is the learning curve for PHP?



Toby A Inkster wrote:

K.J.Williams wrote:

Well we wanted to know, what type of learning curve ( of difficulty )
we would have trying to learn PHP?

With a good background in C, PHP is very easy.

PHP's syntax is fairly like C.

<snip>

Variable scope is worth looking at before you start:
http://uk2.php.net/manual/en/language.variables.scope.php

The biggest difference in syntax is that variables in PHP always begin
with a dollar sign, e.g. $foo.

He, that's always the gotcha when you switch to PHP from C.

PHP has a lot more functions built in to the language, compared to C where
a lot of functionality (e.g. database connectivity, regular expressions,
networking functions) needs to be imported through libraries.

There are core functions, and then there are functions that need to be
compiled in (but usually are):
http://www.php.net/manual/en/functions.internal.php

It's worth remembering as a PHP noob that chances are, there's already
a function to do it.

PHP4 has a certain amount of OO support, and PHP 5 has almost as much OO
support as Java does; however, you don't have to use it!

If you want OO then it's probably best to go with a language that was
designed that way in the first place.

--
"Checking identity papers is a complete waste of time. If anyone can
be counted on to have valid papers, it will be the terrorists".
.



Relevant Pages

  • Re: [PHP] Performance: While or For loop
    ... How often do you use a loop of any kind in PHP with enough iterations ... finding how to squeeze it out is well worth it. ... constant gain since it happens to be 1 year of savings. ... scalable system for accessing system services | ...
    (php.general)
  • Re: What language do you use the most ?
    ... > That sounds expensive to me, even if your time is worth nothing, even ... so who needs Linux on the desktop then? ... What language do you use the most? ... done a lot of Perl lately and then PHP when doing web things. ...
    (microsoft.public.dotnet.general)
  • Re: What language do you use the most ?
    ... > That sounds expensive to me, even if your time is worth nothing, even ... so who needs Linux on the desktop then? ... What language do you use the most? ... done a lot of Perl lately and then PHP when doing web things. ...
    (alt.os.linux.suse)
  • Re: Coding style...
    ... > I'm not sure the tradeoff is anywhere near worth it, ... > Better more work for PHP, I'd think, that be driven crazy as ... It's first on really slow machines you will be able to notice it, ... For one or two lines of HTML printed from PHP is all ...
    (alt.php)
  • Re: Developing proprietary apps in PHP
    ... > While PHP is plain text and can be easily read by anyone with rights to the ... because if the server is residing in the same ... protection that is not too easy to break might be worth the cost. ...
    (comp.lang.php)