Skip to main content

Posts

Showing posts with the label php programs

PHP Programs

Here, at  phptpoint  we begin from the scratch where we can lead you on the practice of these languages. This is a free and online site where the students who want to build a career in the same profession, can be trained about the working of the PHP.   The following are the most important PHP programs that are frequently asked in interviews. These programs cover PHP fundamentals, PHP control statements, PHP arrays, PHP strings, PHP oops, PHP file handling, and so on. Even Odd Program A program to check 1233456 is odd or even is shown. Example: <?php   $number =1233456;   if ( $number %2==0)   {     echo   "$number is Even Number" ;    }   else    {     echo   "$number is Odd Number" ;   }    ?>   Output: Alphabet Triangle using PHP method Some different alphabet triangle patterns using range() function in PHP are shown below. <?php   $alpha  = range( 'A' ,  'Z' );   for ( $i =0;  $i <5;  $i ++){       for ( $j =5;  $j > $i ;  $j --){