Jump to content

Help - few questions.


shamuntoha

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/126996-help-few-questions/
Share on other sites

  • 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

Link to comment
https://forums.phpfreaks.com/topic/126996-help-few-questions/#findComment-657084
Share on other sites

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 )
?>

Link to comment
https://forums.phpfreaks.com/topic/126996-help-few-questions/#findComment-657115
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.