Featured Post Today
print this page
Latest Post

A, B, C, E And F String Functions In PHP with Priority : 5th Day Lecture of PHP

string functions

Sample 1 : addcslashes() Function Usages : 0.5 Priority

Samee \Ullah Feroz

Sample 2 : addslashes() Function Usages : 0.5 Priority

My Name is \"Samee Ullah Feroz\" Understand?

Sample 3 : bin2hex() Function Usages : 0.6 Priority

48656c6c6f20576f726c6421

Sample 4 : chop() Function Usages : 0.4 Priority

Samee Ullah Feroz
Samee Ullah Feroz

Sample 5 : chr() Function Usages : 0.7 Priority

é
ž
î

Sample 6 : chunk_split() Function Usages : 0.6 Priority

Sa|me|e |Ul|la|h |Fe|ro|z|

Sample 7 : convert_cyr_string() Function Usages : 0.3 Priority

Hello world! æÃ¸Ãƒ¥
Hello world! ƒ.ƒñƒ

Sample 8 : convert_uudecode() Function Usages : 0.7 Priority

14V%M964@56QL86@@1F5R;WH` `
Samee Ullah Feroz

Sample 9 : convert_uuencode() Function Usages : 0.7 Priority

14V%M964@56QL86@@1F5R;WH` `
Samee Ullah Feroz

Sample 10 : count_chars() Function Usages : 0.3 Priority

FSUaehlmorz

Sample 11 : crc32() Function Usages : 0.4 Priority

4289894317

Sample 12 : echo() Function Usages : 1.0 Priority

sami

Sample 13 : explode() Function Usages : 0.5 Priority

Array ( [0] => Samee [1] => Ullah [2] => Feroz. [3] => It's [4] => a [5] => beautiful [6] => day. )

Sample 14 : fprintf()Function Usages : 0.6 Priority


 <html>  
      <head>  
           <title>A, B, C, E and F : String Functions in PHP: 5th Day Lecture of PHP</title>  
      </head>  
      <body>  
           <h1 align="center">A, B, C, E And F String Functions In PHP with Priority</h1>  
                <h2 align="left">Sample 1 : addcslashes() Function Usages : 0.5 Priority</h2>  
                     <?php  
                          $str = addcslashes("Samee Ullah Feroz","U");   
                               #It is used to add slashes before specific character  
                               //Syntax is : addcslashes(string,characters)  
                          echo ($str);  
                     ?>  
                <h2 align="left">Sample 2 : addslashes() Function Usages : 0.5 Priority</h2>  
                     <?php  
                          $str = addslashes('My Name is "Samee Ullah Feroz" Understand?');  
                               #It is used to add slashes before double qoutes.  
                               //Syntax is : addslashes(string)  
                          echo($str);   
                     ?>  
                <h2 align="left">Sample 3 : bin2hex() Function Usages : 0.6 Priority</h2>  
                     <?php  
                          $str = bin2hex('Hello World!');  
                          #It is used to convert value to its Hexadecimal Values  
                          //Syntax is : bin2hex(string)  
                          echo($str);  
                     ?>  
                <h2 align="left">Sample 4 : chop() Function Usages : 0.4 Priority</h2>  
                     <?php  
                          $str = "Samee Ullah Feroz";  
                          echo $str . "<br />";  
                          echo chop($str,"Ullah"); //I am getting Error here  
                          #It is used to remove values from right side  
                          //Syntax is : chop(string,charlist)   
                     ?>  
                <h2 align="left">Sample 5 : chr() Function Usages : 0.7 Priority</h2>  
                     <?php  
                          echo chr(233) . "<br>";  
                          echo chr(158) . "<br>";  
                          echo chr(238) . "<br>";  
                          #It is used to show ASCII Values  
                          //Syntax is : chr(ascii)  
                     ?>  
                <h2 align="left">Sample 6 : chunk_split() Function Usages : 0.6 Priority</h2>  
                     <?php  
                          $str = "Samee Ullah Feroz";  
                          echo chunk_split($str,2,"|");  
                          #It is used to separate characters by given character like I separated by |  
                          //Syntax is : chunk_split(string,length,end)  
                     ?>  
                <h2 align="left">Sample 7 : convert_cyr_string() Function Usages : 0.3 Priority</h2>  
                     <?php  
                          $str = "Hello world! æøå";  
                          echo $str . "<br />";  
                          echo convert_cyr_string($str,'w','a');  
                          #it is used to convert character set to an other  
                          //Syntax is : convert_cyr_string(string,from,to)  
                     ?>  
                <h2 align="left">Sample 8 : convert_uudecode() Function Usages : 0.7 Priority</h2>  
                     <?php  
                          $str = "Samee Ullah Feroz";  
                          // Encode the string  
                          $encodeString = convert_uuencode($str); //here this code will convert your value to a specific code  
                          echo $encodeString . "<br>";  
                          // Decode the string  
                          $decodeString = convert_uudecode($encodeString); #here this code will decode that specific code to your specific value.  
                          echo $decodeString;  
                          #It is used to decoded a string value.  
                          //Syntax is : convert_uudecode(string)  
                     ?>  
                <h2 align="left">Sample 9 : convert_uuencode() Function Usages : 0.7 Priority</h2>  
                     <?php  
                          $str = "Samee Ullah Feroz";  
                          // Encode the string  
                          $encodeString = convert_uuencode($str); //here this code will convert your value to a specific code  
                          echo $encodeString . "<br>";  
                          // Decode the string  
                          $decodeString = convert_uudecode($encodeString); #here this code will decode that specific code to your specific value.  
                          echo $decodeString;  
                          #It is used to encode a string value.  
                          //Syntax is : convert_uuencode(string)   
                     ?> 
    
  <h2 align="left">Sample 10 : count_chars() Function Usages : 0.3 Priority</h2>
   <?php
     $str = "Samee Ullah Feroz";
     echo count_chars($str,3);
     #It is used to show string with all different characters.
     //Syntax is : count_chars(string,mode)
   ?>
    
  <h2 align="left">Sample 11 : crc32() Function Usages : 0.4 Priority</h2>
   <?php
     $str = crc32("Samee Ullah Feroz");
     printf("%u\n",$str);
     //crc32() function is used to return a calculate value of a 32-bit CRC (cyclic redundancy checksum) for a string.
     #Syntax is : crc32(string) 
   ?>
  <h2 align="left">Sample 12 : echo() Function Usages : 1.0 Priority</h2>
    <?php
     $str = "sami"; 
      #It is used to print the value
      //Syntax is : echo(strings)
     echo ($str);
    ?>
    
  <h2 align="left">Sample 13 : explode() Function Usages : 0.5 Priority</h2>
    <?php
     $str = "Samee Ullah Feroz. It's a beautiful day."; 
     print_r (explode(" ",$str)); //Need to ask about this error
     //It is used to break a string into an array
     # explode(separator,string,limit)
    ?>
    
  <h2 align="left">Sample 14 : fprintf()Function Usages : 0.6 Priority</h2>
    <?php
     $number = 9;
     $str = "Lahore";
     $file = fopen("test.txt","w"); // Need to understand this function
     echo fprintf($file,"There are %u million dollars in %s.",$number,$str); //38 characters will be printed in text file
     echo($str); // limit and $str name
     #It is used to write some text in Text file.
     //Syntax is : fprintf(stream,format,arg1,arg2,arg++) 
    ?>
      </body>  
 </html>   


0 comments

Escape Sequence in PHP "\" : 5th Day Lecture of PHP


escape in php

Escape Sequence in PHP "\"

Sample 1 : What is Escape Sequence?

Escape Sequence is the combination of escape symbol "\" and a letter coming after it.
Escape character "\" is used to show double quotes, dollar sign, single quote, back slash, curly brackets, or other brackets.
It works within double quotes. "" only.

Sample 2 : Types of Escape Sequences

I am going to describe 8 types of Escape Sequence
  1. \" = It is used to show a certain value within double quotes like "Sami"
  2. \" = It is used to show a certain value within single quote like \'Sami\'
  3. \n = It is used to transfer remaining characters in new line like Samee Ullah
    Feroz
  4. \t = It is used to add 3 spaces within two words or characters like Samee Ullah Feroz
  5. \r = It is used for courage Return like Samee Ullah Feroz
  6. \$ = It is used to show dollar sign as not the part of variable. like 1000 $
  7. \ = It is used to print a tractor as back slash not as escape character. like \Sami

Sample 3 : Example of \n , \t, \r Sequences.

Getting Error, I'll Resolve it tomorrow.Samee Ullah Feroz
Samee Ullah Feroz
Samee Ullah Feroz



 <html>  
      <head>  
           <title>Escape Sequence in PHP: 5th Day Lecture of PHP</title>  
      </head>  
      <body>  
           <h1 align="center">Escape Sequence in PHP "\"</h1>  
                <h2 align="left">Sample 1 : What is Escape Sequence?</h2>  
                     <!-- Brief Description of Escape Character-->  
                     <?php  
                          echo 'Escape Sequence is the combination of escape symbol "\" and a letter coming after it. <br />';  
                          echo 'Escape character "\" is used to show double quotes, dollar sign, single quote, back slash, curly brackets, or other brackets. <br />';  
                          echo 'It works within double quotes. "" only. <br />';  
                     ?>  
                <h2 align="left">Sample 2 : Types of Escape Sequences</h2>  
                     <?php   
                          echo '<b>I am going to describe 8 types of Escape Sequence </b> <br />';  
                          echo  
                               " <ol>  
                                    <li>\\\" = It is used to show a certain value within double quotes like \"Sami\"</li>  
                                    <li>\\\" = It is used to show a certain value within single quote like \'Sami\'</li>  
                                    <li>\\n = It is used to transfer remaining characters in new line like Samee Ullah<br/>Feroz</li>  
                                    <li>\\t = It is used to add 3 spaces within two words or characters like Samee Ullah Feroz</li>  
                                    <li>\\r = It is used for courage Return like Samee Ullah \rFeroz</li>  
                                    <li>\\\$ = It is used to show dollar sign as not the part of variable. like 1000 \$</li>  
                                    <li>\\ = It is used to print a tractor as back slash not as escape character. like \\Sami</li>  
                               </ol> ";  
                     ?>  
                <h2 align="left">Sample 3 : Example of \n , \t, \r Sequences.</h2>  
                     <?php  
                          echo "Getting Error, I'll Resolve it tomorrow.";  
                          $name1="Samee";  
                          $name2="Ullah";  
                          $name3="Feroz";  
                          echo "$name1 $name2\n$name3 <br />"; //Error Here Sequence is not working.  
                          echo "$name1 $name2\t$name3 <br />";  
                          echo "$name1 $name2\r$name3";  
                     ?>  
      </body>  
 </html>   

0 comments

Boolean, Arrays, null value in PHP Brief Description : 4th Day Lecture


boolean, array, null value

Boolean, Arrays, null value in PHP Brief Description

Sample 1 : PHP Booleans Brief Description

Boolean can be either TRUE or False. i.e.
$x=true
$y=false
Simple Code to show of Boolean rule:
my name is "Noor"

Sample 2 : PHP Arrays Brief Description

An array is used to store multiple values in a single Variable.
Arrays are useful when you want to store a group of data.
array (size=3)
  0 => string 'sameeullahferoz' (length=15)
  1 => int 22
  2 => float 5.3

specific datatype in array.
My Height is 5.3

Sample 3 : null Values Variable in PHP

null
samee



 <html>  
      <head>  
           <title>Boolean, Arrays, null value Brief Description : 4th Day Lecture of PHP</title>  
      </head>  
      <body>  
           <h1 align="center">Boolean, Arrays, null value in PHP Brief Description</h1>  
                <h2 align="left">Sample 1 : PHP Boolean Brief Description</h2>  
                     <?php  
                          echo "Booleans can be either TRUE or False. i.e. <br />";  
                          echo '$x=true <br />';  
                          echo '$y=false <br />';  
                     ?>  
                     <?php echo "Simple Code to show of Boolean rule: <br />" ?>  
                     <?php  
                          $istrue = false;  
                          if($istrue)  
                               {  
                          echo "my name is \"Samee\"";  
                               } // if $istrue variable was true, then it will be run. otherwise never.  
                          else  
                               {  
                          echo "my name is \"Noor\""; #backslash is used to give output of double quotes.  
                               }  
                     ?>  
                <h2 align="left">Sample 2 : PHP Arrays Brief Description</h2>  
                     <?php  
                          echo "An array is used to store multiple values in a single Variable. <br />";  
                     ?>  
                          <!-- An Example of PHP Arrays -->
    <?php
     $bio=array("sameeullahferoz",22,5.3); //it is round braces not square bracket. 
     //In Array values are counted as 0, 1, 2, like it.
     var_dump($bio); //to show the types and values of arrays.
     echo "<br />";
     echo "specific datatype in array. <br />";
     echo "My Height is {$bio[2]}"; //it is used to call value from arrage
    ?>
    
   <h2 align="left">Sample 3 : null Values Variable in PHP</h2>
    <?php
    $name=null;
    var_dump($name);
    
    $name="samee";
    echo $name
    ?>
 </body>
</html> 


0 comments

Some Important Things of Data Type: 4th Day Lecture of PHP


php data type

Some Important Things of Data Type in PHP

Sample 1 : Which is Faster way to print?

My General Name is Samee Ullah Feroz.
My General Company Name is Getacho.

Sample 2 : Rules for Integers

An integer must have at least one digit from 0 to 9.
An Integer cann't contain comma, space or blanks.
And Integer must have not a decimal point.
An Integer can be either positive or negative.
Integers can be specified in three formates:
  1. Decimal (10-based)
  2. Hexadecimal (16-based-prefixed with 0x)
  3. Octal (8-based-prefixed with 0)

Sample 3 : Var_dump variable usage

var_dump is a variable to show the integer type, value and size.
var_dump also add a break line in output.
var_dump Example:
50
int 50
float 100.5
string 'values' (length=6)

Sample 4 : Floating Points Numbers

float 10.365

float 2400

float 8.0E-5 



 <html>  
      <head>  
           <title>Some Important Things for Data Type: 4th Day Lecture of PHP</title>  
      </head>  
      <body>  
           <h1 align="center">Some Important Things for Data Type in PHP</h1>  
                <h2 align="left">Sample 1 : Which is Faster way to print?</h2>  
                     <?php  
                          echo "My General Name is Samee Ullah Feroz. <br />"; //It is simple form to print data  
                          echo 'My General Company Name is Getacho.' #it is faster way. because in this it just give print command.  
                      ?>  
                <h2 align="left">Sample 2 : Rules for Integers</h2>  
                     <?php  
                          echo "An integer must have at least one digit from 0 to 9. <br />";  
                          echo "An Integer cann't contain comma, space or blanks. <br />";  
                          echo "And Integer must have not a decimal point. <br />";  
                          echo "An Integer can be either positive or negative. <br />";  
                          echo "Integers can be specified in three formates:<br />";  
                          echo  
                               "<ol>  
                                    <li>Decimal (10-based)</li>  
                                    <li>Hexadecimal (16-based-prefixed with 0x)</li>  
                                    <li>Octal (8-based-prefixed with 0)</li>  
                               </ol>"  
                     ?>  
                <h2 align="left">Sample 3 : Var_dump variable usage</h2>  
                     <?php  
                          echo "var_dump is a variable to show the integer type, value and size. <br />";  
                          echo "var_dump also add a break line in output. <br />";  
                          echo "<b>var_dump Example:</b> <br />";  
                          echo  
                               $a=50;  
                               $b=100.50;  
                               $c="values";  
                               var_dump ($a, $b, $c);  
                     ?>  
                <h2 align="left">Sample 4 : Floating Points Numbers</h2>  
                     <?php   
                          $x = 10.365;  
                          var_dump($x);  
                          echo "<br />";   
                          $x = 2.4e3;  
                          var_dump($x);  
                          echo '<br />'; //I used single quote that you can remember its printing rule    
                          $x = 8E-5;  
                          var_dump($x);  
                     ?>  
      </body>  
 </html>   


0 comments

Static Variable And Its Usage In Function : 3rd Day Lecture of PHP


Static Variable And Its Usage

Sample 1 : What is Static Variable and How to use it?

Static variable is like local variable, but it locates its fake behavior to user.
And One More thing, Once it used, it finished.
Age behavior with every year:
Samee age update: 20
Samee age update: 21
Samee age update: 22



 <html>  
      <head>  
           <title>Static Variable And Its Usage In Function : 3rd Day Lecture of PHP</title>  
      </head>  
      <body>  
           <h1 align="center">Statis Variable And Its Usage</h1>  
                <h2 align="left">Sample 1 : What is Static Variable and How to use it?</h2>  
                     <?php echo "Static variable is like local variable, but it locates its fake behavior to user.<br />" ?>  
                     <?php echo "And One More thing, Once it used, it finished. <br />" ?>  
                     <?php  
                          echo "<p>Age behavior with every year:</p>";  
                               function age()  
                               {  
                               static $age = 20;  
                               echo "Samee age update: ". $age . "<br />"; //dot operator should be before and after variable.   
                               $age++;  
                               }  
                               age();  
                               age();  
                               age();  
                     ?>   
      </body>  
 </html>   

0 comments

Local Variable, Global Variable Use In Function : 3rd Day Lecture of PHP


Local Variable, Global Variable Use

Sample 1 : Simple Function of Local And Global Variable

This is Big Number: 35
This number is less than Big Number : 15

Sample 2 : Rules of Local And Global Variables

  1. We can not use Local Variables outside the function.
  2. We can not use Global Variables inside the function Directly.
  3. We can use Global Variables inside the function by $GLOBALS['Variable'].
    • But in $GLOBALS['Variable'], you can contain only one single variable.
    • For different Variables you will create separate $GLOBALS['x']
    • In $GLOBALS all spellings are Capital
    • Variable will be written within single quote.
  4. As you know; after function completion, local variables will be finished, so you need to keep in mind these rules

Sample 3 : Global Variable Use inside the Function.

What is Your Name And Age?
My Name is Samee
And My Age is 22 And my double age will be 44
Tell me your complete bio data?
My Name is Samee, age is 22, and My height is 5.3.

Sample 4 : Local Variable use Out Side the Function.

Sorry! We can not use Local Variable out side the Function in PHP.


   <html>
 <head>
  <title>Local and Global Variables Use In Function : 3rd Day Lecture of PHP</title>
 </head>
 <body>
  <h1 align="center">Local Variable, Global Variable Use</h1>
   <h2 align="left">Sample 1 : Simple Function of Local And Global Variable</h2>
    <?php 
     $a=5;
     $b=10;
     function add()
     {
     $c=15;
     $d=20;
     echo "This is Big Number: " . ($c+$d);
     echo "<br />";
     }
     add();
     
     echo "This number is less than Big Number : ". ($a+$b);
     
     echo "<br />";
    ?>
    
   <h2 align="left">Sample 2 : Rules of Local And Global Variables</h2>
    <?php
    echo 
     '<ol>
      <li>We can not use Local Variables outside the function.</li>
      <li>We can not use Global Variables inside the function Directly.</li>
      <li>We can use Global Variables inside the function by $GLOBALS[\'Variable\'].
       <ul>
       <li>But in $GLOBALS[\'Variable\'], you can contain only one single variable.</li>
       <li>For different Variables you will create separate $GLOBALS[\'x\']</li>
       <li>In $GLOBALS all spellings are Capital</li>
       <li>Variable will be written within single quote.</li>
       </ul></li>
      <li>As you know; after function completion, local variables will be finished, so you need to keep in mind these rules</li>
     </ol>' //backslash operator is used to give output of single quote of double quote in double quote. 
    ?>
    
     <h2 align="left">Sample 3 : Global Variable Use inside the Function.</h2>
    <?php
    $name="Samee";
    $age=22;
    $hight=5.3;
    function msr()
    {
     echo "<b>What is Your Name And Age?</b> <br />";
     echo "My Name is {$GLOBALS['name']}";
     echo "<br />";
     echo " And My Age is " . $GLOBALS['age'] . " And my double age will be " . ($GLOBALS['age']*2) . "<br />";
    }
    msr();
     echo "<b>Tell me your complete bio data?</b> <br />";
     echo "My Name is $name, age is $age, and My height is $height."
    ?>
    
   <h2 align="left">Sample 4 : Local Variable use Out Side the Function.</h2>
    <?php echo "<b>Sorry! We can not use Local Variable out side the Function in PHP.</b>" ?>
 </body>
</html>

0 comments

Variable Concept in Functions of PHP : 3rd Day Lecture of PHP

Variable Concept in Functions of PHP

Sample 1 : Types of Variables in Functions

  1. Global Variables
  2. Local Variables
  3. Static Static Variables

Sample 2 : Define a function

My name is Samee_Ullah_Feroz
And my age is 22

   <html>  
     <head>  
       <title>Variable Concept in Functions of PHP : 3rd Day Lecture of PHP</title>  
     </head>  
     <body>  
       <h1 align="center">Variable Concept in Functions of PHP </h1>  
            <h2 align="left">Sample 1 : Types of Variables in Functions</h2>  
              <?php   
                          echo "<ol>  
                                    <li>Global Variables</li>  
                                    <li>Local Variables</li>  
                                    <li>Static Static Variables</li>  
                                    </ol>" // we use list here  
                          ?>  
          <h2 align="left">Sample 2 : Define a function</h2>  
               <?php   
                          $age=22; //It is Global Variable  
                               function bio()  
                                    {       
                                    $name = "Samee_Ullah_Feroz";  
                                    /* 2 Points Are Here  
                                    1) Use under score in the place of space  
                                    2) It is Local Variable  
                                    */  
                                    echo "My name is " . $name;  
                                    echo "<br />";  
                                    } #Local Variables Concept is finished at the end of the function  
                                         bio();  
                          /*It is every important, it is used to call function.   
                          1) Function is Declared  
                          2) then Function is called  
                          3) Variables Inside the function are "Local Variables"  
                          4) Variables out side the function are "Global Variables"  
                          */  
                          echo "And my age is {$age}" #Here I used curly brackets that I can not forget a minor rule of variable.  
                          ?>  
     </body>  
   </html>   



0 comments

Single Quote Concept in PHP : 3rd Day Lecture


Single ' ' Quote Concept in PHP

Sample 1 : Single Quote As Double Quote

My Name is Samee. And I am here to learn PHP.

My Name is Samee and my friends call me Sam.

Real Single Quotes Effact
My age is {$age}
My Short Name Is $name



   <html>  
     <head>  
       <title>Single Quote ' ' Concept in PHP : 3rd Day Lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Single Quote Concept in PHP</h1>  
       <!--This Topis is also related to Display of Variables in PHP : 3rd Lecture of PHP -->  
            <h2 align="left">Sample 1 : Single Qoute As Double Qoute</h2>  
              <?php echo 'My Name is Samee. '.'And I am here to learn PHP. <br />' ?>  
           <?php echo '<p>My Name is Samee and my friends call me <b>Sam</b>. </p>' #you can use html also in single quote ?>  
           <?php echo '<b>Real Single Quotes Effact</b> <br />'?>  
                          <?php  
                          $age=22;  
                          echo 'My age is {$age} <br />' //As you can see in output that single quote does not support to variables.  
                          ?>  
           <?php  
                          $name = "Samee Ullah Feroz";  
                          echo 'My Short Name Is $name' //As you can see in output that single quote does not support to variables also without curly brackets.  
                          ?>  
     </body>  
   </html>  


0 comments

Display of Variable in PHP : 3rd Day Lecture


Display of Variables In PHP

Display of Variables in PHP
$Name, $_class, $ali

Sample 1 : Common way of Variable

The Answer is = 150

Sample 2 : Variable within double qoutes with curly brackets

My age is 22.

Sample 3 : Variable within double quotes without curly brackets

My age is round about 22.



   <html>  
     <head>  
       <title>Variable Display in PHP : 3rd Day Lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Display of Variables in PHP<br />
            $Name, $_class, $ali</h1>  
            <h2 align="left">Sample 1 : Common way of Variable</h2>  
              <?php $a = 100;  
                                    $b = 50;  
                                    $c = $a + $b;  
                                    echo "The Answer is = ".$c ?>  
         <h2 align="left">Sample 2 : Variable within double qoutes with curly brackets</h2>  
              <?php $age = 22;  
                                    echo "My age is {$age}." #Variable within quotes is defined between curly brackets  
                          ?>  
         <h2 align="left">Sample 3 : Variable within double quotes without curly brackets</h2>  
              <?php $age=22;  
                     echo "My age is round about $age." //Variable within quotes is defined without curly brackets  
                          ?>  
     </body>  
   </html>  


0 comments

Echo And Print Keywords Difference in PHP : 3rd Day Lecture


echo And print in php

Echo Keyword Functionality in PHP

Sample 1 : Echo Usage

1 : Echo is used to print data.
2 : As I had described in my Old Echo Functionality post.
3 : Echo is used to print multiple stings at a time. Like
4 : You Know what is my name!.....My name is +Samee Ullah Feroz 

Print Keyword Functionality in PHP

Sample 2 : Print Usage

1 : Print is used to print date same as echo does. But....
2 : Print keyword is used to print a single sting at a time.
3 : You Know what is my name!.....

[Note] : As you can see in 3rd statement of Print Keyword Functionality. 2nd Half Part is not printed. as Echo keyword did.



   <html>  
     <head>  
       <title>Echo And Print Keywords Differance in PHP : 3rd Day Lecture : Samee</title>  
     </head>  
     <body>  
       <h1 align="center">Echo Keyword Functionality in PHP</h1>  
         <h2 align="left">Sample 1 : Echo Usage</h2>  
           <?php echo "1 : Echo is used to print data. <br />"?>  
           <?php echo "2 : As I had described in my Old Echo Functionality post. <br />" ?>  
           <?php echo "3 : Echo is used to print multiple stings at a time. Like <br />" ?>  
           <?php echo "4 : You Know what is my name!.....","My name is <b>Samee Ullah Feroz</b>" //Here echo print "You Know what is my name!.....My name is Samee Ullah Feroz" at a time ?>  
       <h1 align="center">Print Keyword Functionality in PHP</h1>  
             <h2 align="left">Sample 2 : Print Usage</h2>  
              <?php print "1 : Print is used to print date same as echo does. But.... <br />" ?>  
           <?php print "2 : Print keyword is used to print a single sting at a time. <br />" //Like This Line is printed. String is the collection of alfabetes ?>  
           <?php print "3 : You Know what is my name!....." /*,"My Name is Samee Ullah Feroz"*/ ?>  
                <hr width="30%" align="center">  
                          <?php echo "<b>[Note] :</b> As you can see in 3rd statement of Print Keyword Functionality. 2nd Half Part is not printed. <i>as Echo keyword did.</i>" ?>  
     </body>  
   </html>  


0 comments

Variable Functionality in PHP : 2nd Day Coding lecture

Variable Functionality

Variable Functionality

Sample 1 : Variables Use in Echo

I am going to use variables here

Sample 2 : Variable rules

  Variable Rules given bellow
  1. can be contained alpha numeric characters
  2. 1st character should contain underscore or alphabet
  3. 1st character can not be number or digit
  4. Try to ignore understand ( _ ) as 1st character of variable
    Because mostly major PHP personal variables start with underscore.
  5. Variable starts with Dollar Sign ($)
  6. Try to write variables in small latters
  7. Single File Variables Can not connect with other file variables.

Sample 3 : simple print veritable command

100

Sample 4 : Variables Adding Command

100+50+50 = is the right answer.
200 = is the right answer.

Sample 5 : Variable Replacing Rule

Getting Error In this Code, I'll modify tomorrow
What is Your Name?
My Name is samee.



   <html>  
     <head>  
       <title>Samee : Variable Functionality in PHP : 1st Day Coding lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Variable Functionality</h1>  
         <h2 align="left">Sample 1 : Variables Use in Echo</h2>  
           <?php echo "I am going to use variables here" ?>  
         <h2 align="left">Sample 2 : Variable rules</h2>  
           <?php echo "Variable Rules given bellow <br/>  
                 <ol>  
                   <li>can be contained alpha numeric characters</li>  
                   <li>1st character should contain underscore or alphabet</li>  
                   <li>1st character can not be number or digit</li>  
                   <li>Try to ignore understand ( _ ) as 1st character of variable <br />  
                   Because mostly major php personal variables start with underscore. </li>  
                   <li>Variable starts with Dollar Sign ($)</li>  
                   <li>Try to write variables in small latters</li>  
                   <li>Single File Variables Can not connect with other file variables.</li> </ol>" //4th point is pointed by Teacher ?>  
          <h2 align="left">Sample 3 : simple print variable command</h2>  
            <?php $a=100;  
           echo "$a" #Here 100 is assigned to a ?>  
          <h2 align="left">Sample 4 : Variables Adding Command</h2>  
            <?php $a=100;  
               $b=50;  
               $c=50;  
               echo "$a+$b+$c = is the right answer. <br />" //values will be hold from above veriables ?>  
           <?php $a=100;  
               $b=50;  
               $c=50;  
               $d=$a+$b+$c;  
               echo "$d = is the right answer."  ?>  
          <h2 align="left">Sample 5 : Variable Replacing Rule</h2>  
          <?php echo "Getting Error In this Code, I'll modify tomorrow<br />"?>  
            <?php echo "<b>What is Your Name? </b><br />";  
               $name=100;  
               $name="samee";  
               echo "My Name is $name." ?>  
     </body>  
   </html>  

0 comments

Echo Functionality : 2nd Day Coding Lecture about "Echo"


php echo lecture

Echo Functionality

Sample 1 : Hello World

Hello World

Sample 2 : Concept of Dot is to match up two words.

Hellow world

Sample 3 : Concept of HTML in PHP Code

Hello
World

Sample 3 : Terminator (Semicolon) Rule In PHP

; Performs the rule of Terminator of the line.
It is used to break the line but
at the last line if we won't put it, nothing matter

Sample 4 : What is Echo? Please define it with php codes?

echo is function in php code.
It is used to call the command.it can be used in capital latters as I am doing
Every function is different in Code as echo, Echo, eCho etc has same functionality.



   <html>  
     <head>  
       <title>Samee : Echo Functionality : 1st Day Coding lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Echo Functionality</h1>  
         <h2 align="left">Sample 1 : Hello World</h2>  
           <?php echo "Hello World"; #It was simple command for php understanding ?>  
         <h2 align="left">Sample 2 : Concept of Dot is to match up two words.</h2>  
           <?php echo "Hellow "."world"; //It was easy for me to understand ?>  
         <h2 align="left">Sample 3 : Concept of HTML in PHP Code</h2>  
           <?php echo "<b>Hello</b> <br> <i>World</i>" //It is common code to add HTML within php code?>  
         <h2 align="left">Sample 3 : Terminator (Semicolon) Rule In PHP</h2>  
         <?php /* Here I am going to describe to Terminator point,  
         (;) it is very important.  
         we need to close every single line that php can easily understand the parts of madule. */ ?>  
           <?php echo "; Performs the rule of Terminator of the line. <br>" ;  
               echo "It is used to break the line but <br>  
               at the last line if we won't put it, nothing matter" ?>  
         <?php /* Here I am going to describe the functionality of echo function. */ ?>  
         <h2 align="left">Sample 4 : What is Echo? Please define it with php codes?</h2>  
           <?php echo "<b>echo</b> is function in php code. <br>  
                 It is used to call the command.";  
               Echo "it can be used in capital latters as I am doing <br>";  
               eCho "Every function is different in Code as echo, Echo, eCho etc has same functionality." ?>  
     </body>  
   </html>   


Consultant: 
On Facebook
Gtalk : SEO.Getacho@gmail.com
Skype : SEO.Getacho
0 comments

PHP Learning : 1st Day Tutorial Class

Hi Friends.
From couple of days, I am thinking about to learn PHP. And finally today was my 1st Tutorial Class of PHP. I am getting PHP training from my College friend +Noor Ali Butt. As he is good in development and C++ as I know. I visited many software housed in Lahore, Pakistan. But I could not find a good one. Finally my friend Noor agreed to support me and teach me.
He told me many new things which I am going to describe here.
He asked?
What I know in programming languages exactly?
Wood Profits Banner
I told him, I don't know enough about programming languages but little bit about HTML and CSS just.
He asked me about Java language but I don't know about it.
Then he started to give his lecture as I am going to describe here.
He gave me the concept of programming languages. As we all know PHP, Ajax, ASP etc. are Programming languages but he distinguished about these languages and told me about scripting language and programming languages like "Programming language can do its tasks automatically, it does not need to occur any event" but "Scripting language cannot do its tasks automatically without occurring any event".
He told me about Platform Dependant and Cross-Platform. As a software which can run on multiple Operating systems, is a Cross-Platform just like php language, html language etc.. On the other side if software is designed for specific Operating system, then it is called Plate form dependant as VLC software.
He told me about open source program. As if a program or software is available for free of use, modify, download, edit, study then it is open source program. just like Linux, Mac.
He also told me history of PHP like

PHP History:

as you can see PHP was build in 1994. At that time it was a CGI binaries in the C Programming language as 1st version of PHP. It was upgraded in 1995 and its abbreviation was "Personal Home Page Tools" as 2nd version. It was again upgraded in 1998 and its name was kept "PHP: Hypertext Preprocessor" as 3rd version. in 2000 some updates occurred in it as Version 4.4.6 on March 1, 2007. After that Version 5 was released on 2004 and its second and latest PHP 5.2.1 Version was released on February 8, 2007.
What PHP can do?
  1. With PHP you have command to do many things like.
  2. As you can create new and unlimited dynamic pages
  3. You can add, delete, modify, edit them easily with full access.
  4. You can create new users accounts to access limited data
  5. You can encrypt your data or website
  6. You can add restrictions for users for specific locations on site.
  7. You can send and receive cookies and can make your database
  8. You are not limited on HTML as need to show output.
  9. You can do it with PHP also like to show images, movies, files, and more
  10. You can receive data from specific Form.
Some Needs To Run PHP:
There are some requirements to run PHP just like
  • Web server (apache)
  • PHP software
  • Database (Mysql)
  • Text editor
  • Web browser
As we can use XAMP for Web Server (Local Server)
But we'll work on Wamp as Windows professional
  1. Wamp Server (windows appache mysql php )
  2. Mamp (mac appache mysql php )
  3. Lamp (linux appache mysql php )
  4. Xamp (cross appache mysql php ) 
    1.  Wamp is old name if Xamp for windows version
4 comments
 
Copyright © 2011-2026. Samee Articles - All Rights Reserved
Proudly powered by Blogger