?
This document uses PHP Chinese website manual Release
Parameter Position | Type | Required | Default | Description |
---|---|---|---|---|
1 | string | No | empty | This is the default value to output if the
variable is empty. 這是變量為空的時(shí)候的默認(rèn)輸出。 |
This is used to set a default value for a variable. If the variable
is empty or unset, the given default value is printed instead.
Default takes one argument.
為空變量設(shè)置一個(gè)默認(rèn)值。
當(dāng)變量為空或者未分配的時(shí)候,將由給定的默認(rèn)值替代輸出。
Example 5-10. default
|