Syn Posted February 24, 2010 Share Posted February 24, 2010 I think I am posting this in the right section, Programming Theory being the reason why I think that. As posted in my intro post, I am new to PHP but I am a C++ programmer and I can't help but notice a lot of the code is almost identical to C++, IF statements, While, For, the logical operators and I know most things are just standard across the board but I was wondering if this is a OOP language? can I use C++ coding in PHP? I know everything isn't going to implement the same but so far what I've been reading it almost seams like review of an old C++ book that I have. Link to comment https://forums.phpfreaks.com/topic/193167-c/ Share on other sites More sharing options...
trq Posted February 24, 2010 Share Posted February 24, 2010 Quote I was wondering if this is a OOP language? Indeed there is decent support for oop. See oop Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1017208 Share on other sites More sharing options...
roopurt18 Posted February 24, 2010 Share Posted February 24, 2010 The similarities are because they're are both c-style languages. You would also notice that other languages, such as Java, share many syntactical structures. Can you copy and paste your C++ code into a PHP file and expect it to work? Probably not! Can you reproduce an application design and organization from C++ to PHP or from PHP to C++? Most likely! Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1017251 Share on other sites More sharing options...
sangoku Posted February 25, 2010 Share Posted February 25, 2010 wow a nice joke well i font know of my part but i all languages that i know (3rd generation lang.) use from you mentioned statments. And forgive me but all statments have the same logic and all lang acept it... Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1018182 Share on other sites More sharing options...
roopurt18 Posted February 25, 2010 Share Posted February 25, 2010 Quote wow a nice joke well i font know of my part but i all languages that i know (3rd generation lang.) use from you mentioned statments. And forgive me but all statments have the same logic and all lang acept it... I understand English may not be your first language, but what the !@#$ are you talking about? Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1018199 Share on other sites More sharing options...
sangoku Posted February 25, 2010 Share Posted February 25, 2010 Quote Quote wow, nice joke well i don't know of my part. But in all languages that i know (3rd generation lang.) use from you mentioned statement. And forgive me but all statments have the same logic and all lang acept it... I understand English may not be your first language, but what the !@#$ are you talking about? Sorry i am on a laptop (damn keyboard) the touch pad played some pranks on me.... will correct it. Not even i don't get what i wrote. damn keyboard Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1018201 Share on other sites More sharing options...
sangoku Posted February 25, 2010 Share Posted February 25, 2010 wow, nice joke Well i don't know of my part, but i all languages that i know, mean all 3rd generation languages, use statements that are almost identical (from you mentioned statements). So forgive me to say it so boldly but.... you get the rest. So... I could not edit the post so i wrote it again. Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1018209 Share on other sites More sharing options...
roopurt18 Posted February 25, 2010 Share Posted February 25, 2010 I'm still confused what the joke is. /shrug Link to comment https://forums.phpfreaks.com/topic/193167-c/#findComment-1018225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.