Jump to content

shamuntoha

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Everything posted by shamuntoha

  1. 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 ) ?>
  2. How to find John Smith? ??? <? /* * This is a test of Class and there uses * Thanks for the NuSphere PHPed * */ // A Town of Usa class town{ // A building, with 3rd floor function f_building1($id){ switch($id){ case 1: echo "Karnel Smith, eating <br>"; return 0; break; case 2: echo "Peter Smith, showering <br>"; return 0; break; case 3: echo "John Smith, hacking.. <br>"; return "John Smith"; break; } } // A building, with 2 floor function f_building2($id){ switch($id){ case 1: echo "Bush Smith, reading reports <br>"; return 0; break; case 2: echo "Jack Smith, no job.. smoking.. <br>"; return 0; break; } } } // Police inquery, from car $pol = new town(); // Searching all building, Find John Smith!! programmer... $searching = "John Smith"; for($i=0;$i<10;$i++){ $moving = $pol->f_building1($i); if ( $moving==$searching ) { echo "Sir, we found him, arrest him. <br>"; }else if($pol->f_building2($i)==$searching ){ echo "Sir, we found him, arrest him. <br>"; } } ?>
  3. What IDE experts and commercialy mostly using for PHP? 1. Netbean ide / Eclipse 2. NuShpere phpED 3. Roadsend or 4. Just php by notepad or dreamweavers and compile from apache web link?
  4. Redarrow, Appreciate that! we realy came here to discuss and have quicker learning and sharing. best regards
  5. 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?
×
×
  • 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.