The code is as follows:
Download nearby: Http://files.cnblogs.com/great/MyPHPTest.rar
hello.php
My first PHP program
Error occurred:[$error _level] $error _message"Echo" is about to stop the execution ... ";d ie ();} Set_error_handler ("
Variables in single quotes are not executed, and double quotes are executed. For example, $ namehello; echothe $ name; will output thehello, and if it is a single quotation mark $ namehello; echothe $ name; will output the main difference of the $
The PHP debug_backtrace () function generates a BackTrace
the function returns an associative array .
下面是可能返回的元素
function
string
the current function name
Line
Integer
The current
PHP uses regular expressions to extract character examples in string angle brackets <>, Parentheses (), brackets [], and braces {}. For more information, see
The Code is as follows:
$ Str = "Hello (love) [BEIJING] {Tiananmen Square }";
Echo f1 (
This article mainly introduces the usage of _ initialize () and construct _ construct () in ThinkPHP, and analyzes the method of constructing subclass during class initialization in ThinkPHP as an example, is oriented using ThinkPHP
This article
__initialize () and class constructors in thinkphp __construct ()There's a lot of talk and usage on the internet about __initialize (), it's always a little bit wrong, so I tested it myself. Share the results with everyone. No, please correct
"Emergency help" Fatal Error:call to a member function * * * on a Non-object
This post was last edited by keric2008 on 2013-08-26 18:33:02
The source code is very long, abstract, the approximate process is this.
{
$instest = new test ();
$insobject
The first is to add HTML tags to the following format: PHP$array=Array("12", 345); Echo Is_array($array); $atr= "Beijing shunping Tianjin Song Jiang"; $str=Explode(" ",$atr); foreach($str as $hello) { Echo $hello; }?>The second is to add
Basic syntax for BASH
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of
1. #注释作用, #! Except in addition, in the parameter replacement echo ${path#*:} here does not represent the comment, the numeral conversion, does not represent the comment echo $ ((2#101011)) 2. Command line delimiter, you can write multiple commands
We know that the usual linux command line operation can be placed in the file, given the executable permission, you can change the file into a shell script. But if we interact with some programs, the shell script doesn't help us too much. such as
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of functions
2.1 Simplest example
Just contact Python soon, by the simple and powerful python, in doing leetcode,reverse words in a string, just beginning or traditional thinking about how to deal with the space problem has been tested, written very wordy by the Brother Spit Groove
Functions are often used when writing programs, and general development tools have a rich library of functions. But sometimes you need to customize the function to meet our needs.In Linux, the same is true for shell scripts, which sometimes use
PHP variablesPHP variables are used to store characters, numbers, arrays, and even object resources, so that we need to place to use.$ variable name = value;The variable name starts with a letter (a-z,a-z) or an underscore _, followed by aAny letter
1. #annotation function, #! ExceptIn addition, in the parameter replacement echo ${path#*:} here does not represent a comment, a numbering conversion, does not represent a comment echo $ ((2#101011))
2.;
Command line separator, you can write
1. #annotation function, #! ExceptIn addition, in the parameter replacement echo ${path#*:} here does not represent a comment, a numbering conversion, does not represent a comment echo $ ((2#101011))2.;Command line separator, you can write multiple
In this paper, the __initialize () and the constructor __construct () of the class are analyzed in thinkphp. Share to everyone for your reference. The specific analysis is as follows:
Thinkphp in the __construct is not to be used casually, because
When defining a variable, the variable name does not have a dollar sign ($), such as:
$variableName = "Value"
As shown in figure:Note 1:
1. There can be no spaces between the variable name and the equals sign, which may be different from any
Shell commonly known as shell (used to distinguish from the kernel), refers to the "user interface to provide users" command parser (software). It is similar to DOS command and later cmd.exe. It receives the user command and then invokes the
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.