Wisdom Podcast 2017 latest PHP video courseware recommended

Source: Internet
Author: User
PHP ("Hypertext Preprocessor") is a common open source scripting language. The grammar absorbs the C language, Java and Perl features, is conducive to learning, widely used, mainly for the field of web development. PHP's unique syntax mixes the syntax of C, Java, Perl, and PHP's own creation. It can execute Dynamic Web pages more quickly. Dynamic pages made with PHP are implemented in HTML (an application under the standard Universal Markup Language), which is more efficient than CGI, which is built with HTML markup, compared to other programming languages. Learn the basics of PHP with the latest PHP video tutorial on "Smart Podcast 2017".

Course Play Address: http://www.php.cn/course/583.html

The teacher's lecture style:

Teachers teach in a clear, well-organized, layered analysis, interlocking, rigorous argumentation, structural rigorous, with the logical power of thinking to attract students ' attention, with reason to control the course of classroom teaching. By listening to the teaching of teachers, students not only learn knowledge, but also receive the training of thinking, but also by the teachers rigorous study attitude of the edification and infection,

The difficulty in this video is function, variable function, anonymous function:

Variable variables refer to the value of a variable as a variable name again to get the value of another variable.
Such as:

$name = ' DQRCSC '; $myname = ' name ';//$myname value happens to be the variable name of another variable, echo $name;//output $name value ' DQRCSC ' echo $myname;//output $myname value ' Name ' echo $ $myname;//Get $myname value ' name ', parse it into a variable $name, and output $name value ' DQRCSC '

anonymous function: That is, a function without a name
The definition of a function in PHP is stored in the code area by the system in the compile phase, and the function's code can be found in the code area by the function name.
If you do not have a name, you need to save the memory address of the function through a variable.

$func = function () {echo ' Test ';}; Var_dump ($func);//object (Closure) #1 This is a closure.

Save the address of the function, and then how to invoke the anonymous function?
Recall the invocation form of the function: MyFunc (), followed by a pair of parentheses after the function name, indicating that the function was called. Anonymous function calls in the same form
$func ();//indicates the anonymous function to which the variable is called
Since the addition of () is considered a calling function, the concept of mutable function is naturally present here.

mutable functions: Like mutable variables, a variable holds the name of the function, obtains the function's value as the function's name, and then interprets it as a function.
Such as:

function test () {echo ' Test ';} $func = ' test '; $func ();//$func Gets the value of the variable ' test ', followed by (), is called as the function test ().

What if the anonymous function?

$func = function () {$name = ' DQRCSC '; echo $name;}; $myfunc = ' func '; $myfunc is a mutable variable, which stores the variable name of $func $ $myfunc ();//$ $myfunc parse the variable variable, get the value of $func, followed by (), as a function to invoke, then output ' DQRCSC '

From the above, mutable variables and variable functions are the same principle, but the resolution is different, a variable want to parse it into a variable variable, plus a $ symbol,
You want to parse it into a mutable function, followed by ().
So the question is, can functions and variables have the same name? The answer is yes.

function test () {echo ' function ';} $test = ' var ';//the variable with the same name as the function $myvar = ' test ';//define a variable that just holds the value of the variable name and function name echo $ $myvar;//parse it into a mutable variable, output ' var ' $myvar ();//parse it into a mutable function, Output ' function '

We also recommend the download of the information here: http://www.php.cn/xiazai/learn/2107

Information inside to share the video tutorial courseware

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.