PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsWeb Design & DevelopmentPHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old December 27th, 2007, 11:01 AM
Admin Admin is offline
Developer Shed
Click here for more information.
 
Join Date: Jun 2007
Posts: 12,343 Admin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
From C/C++ to PHP

In this tutorial we will discuss pitfalls that a typical C/C++ developer is likely to encounter when starting coding in PHP. If you are unfamiliar with PHP at all we suggest that you follow links to PHP manual provided in this tutorial and then come back to find out what you should take care of.



We will start with comparison operators. In PHP, a function can generate mixed result type. For example, function strstr that finds first occurrence of a substring in a string might return NULL if the substring is not found or 0 if the string starts with the substring. In C/C++, it is impossible to distinguish between 0 and NULL. Type casting is different in PHP when applied to objects.



There is pass-by-reference mode in C/C++. In PHP, references are used instead of pointers but they are not as powerful and there are cases when you cannot use them. We will discuss those special cases.



Object inheritance is available in PHP 4.x. However, function overloading implementation is different from that in C/C++.



Finally, we will discuss regular expressions.

Read the full article here: From C/C++ to PHP

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPHP > From C/C++ to PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT