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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.