A small demonstration of self-study for getting started with PHP

WBOY
Release: 2016-07-29 08:58:20
Original
986 people have browsed it

    head>

 

 }

 name();//No parameter function call

function name($age,$height){

  print "This is a parameterized function
";

  echo "Height".$height.",Age:".$age."CM";

 }

 name(20,170);

/*

 The following These are some knowledge points recorded by newcomers’ self-study. If the masters don’t like it, please don’t comment.

 There are two main types of output statements in PHP;

 1: print, output a single variable or string;

 2: echo, output multiple variables or strings, and the execution efficiency is better than print Much faster.

 3: PHP is a weakly typed language;

 4: Loops, judgments, and branch selection statements in PHP are similar to those in C# and js;

 5: The array naming method is a bit unique:;172,"weight"=>60);

   The index does not necessarily start from [0], but the "age", "height" and "weight" defined by ourselves;

    If you want to get the elements in the array, you can only use $man["age"], $man["height"], $man["height"];

*/

? >

The above has introduced a small self-study demonstration for getting started with PHP, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template