FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Learn PHP knowing C++
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Learn PHP knowing C++ [message #171706 is a reply to message #171703] Mon, 17 January 2011 03:23 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Bernd Schulz wrote:
> Am 16.01.2011 22:35, schrieb Alexander:
>> Hello. I know C++ well enough, and now I want to learn PHP. Is PHP
>> similar to C++ (not syntax, but concepts)? How difficult can it be?
> Yes.
> Variables are more easy to use and no Memorymanagement.
Variables are harder to use because there is no typing that you can rely
on. Memory management is automatic so it will bite you one day.
Its interpreted so the order of things is important.

Variables are actually not declared, they are constructed.

>
>> Where should I start (after installing the server)? Thanks
> index.php:
> <?PHP
> echo "Hello world<br>";
> ?>
>

Juts pretend its C with $ in front of every variable till you get a
syntax error, then RTFM.


Read up the dot operator as well, and the way strings are handled and
their syntax: subtle differences.

> :-)
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: hackbar i ajax
Next Topic: SplFileObject returns an empty line at the end
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 18:42:33 GMT 2024

Total time taken to generate the page: 0.04962 seconds