![]() |
|
#1
|
|||
|
|||
main difference between c/c++ and phpso, which is that? i saw many things that are almost the same with php... i guess the reason is that php is kinda webc++..
thanx in advance. ![]() |
|||
|
#2
|
|||
|
|||
Re: main difference between c/c++ and phpTwo big differences come to mind right away:
1. compilation -- C++ code needs to be compiled into a .exe, PHP is interpreted directly from the source by Apache. 2. types -- C++ is strongly typed, PHP has no variable types (well, there are types, but a variable can change types throughout the program). Functions don't need specific return types, parameters don't need types either. Variables in PHP have to start with $. There are some differences associated with classes and especially polymorphism and inheritance. But you are right; the syntax and concepts are very similar. PHP is much more forgiving than C++ in some ways (with variable types and such). |
Recent GIDBlog
Running Linux Programs at Boot Time by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Get the date / time difference with PHP | admin | PHP Code Library | 5 | 26-Oct-2010 09:51 |
| Help ! I need help starting up on Php ! | onauc | MySQL / PHP Forum | 11 | 04-Jan-2005 23:57 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 18:40 |
| php software | dopee | MySQL / PHP Forum | 0 | 04-May-2004 11:26 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 16:14 |
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The