shamuntoha Posted October 4, 2008 Share Posted October 4, 2008 In php confusing me, can we do following and how? (most basics of PHP i gather with my C knowledge) 1. What is namesapce? 2. What is pre processor directives? 3. What is #pragma? 4. What datastructure and how can be used, instead of arrays, Linear linklist and etc linklist 5. What i need to do for university library digitalize by php? Quote Link to comment https://forums.phpfreaks.com/topic/126996-help-few-questions/ Share on other sites More sharing options...
zq29 Posted October 4, 2008 Share Posted October 4, 2008 http://en.wikipedia.org/wiki/Namespace I don't know much about C, but is that like defining a constant? You can do that with define() I think #pragma is C specific and doesn't have a comparable function(?) in PHP PHP pretty much just has arrays and objects as far as I'm aware... Can hardly be answered in a bullet point. Break the problem down into modules, and figure it out on a per-module basis Quote Link to comment https://forums.phpfreaks.com/topic/126996-help-few-questions/#findComment-657084 Share on other sites More sharing options...
shamuntoha Posted October 4, 2008 Author Share Posted October 4, 2008 Thanks.. for the directives. in C #define FALSE 0; <?php define('PAYMENT_IDEAL',"iDEAL Payment ( NL only )"); define('PAYMENT_MASTERCARD',"Mastercard Payment ( international )"); $payparam='MASTERCARD'; echo constant("PAYMENT_$payparam"); // output : // Mastercard Payment ( international ) ?> Quote Link to comment https://forums.phpfreaks.com/topic/126996-help-few-questions/#findComment-657115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.