Possible Duplicate:
What does the 'period' character (.) mean if used in the middle of a php string?
Why are the periods included in the code that follows?
require("mod/" . $modarrayout . "/bar.php");
Obviously, it's because the variable is between strings, but shouldn't the quotes have taken care of that? PHP
This operator is used to combine strings. Well, to be more specific if a value is not a string, it has to be converted to one.
It's the concatenating assignment operator. It works similarly to: $var = $var .
Variable interpolation is adding variables in between when specifying a string literal. PHP will parse the interpolated variables and replace the variable with its value while processing the string literal.
Null is a special data type which can have only one value: NULL. A variable of data type NULL is a variable that has no value assigned to it.
The DatePeriod class. (PHP 5 >= 5.3.0, PHP 7) Represents a date period. A date period allows iteration over a set of dates and times, recurring at regular intervals, over a given period.
So, why do women have periods? As a woman, your period is your body’s way of releasing tissue that it no longer needs. Every month, your body prepares for pregnancy.
Introduction Represents a date period. A date period allows iteration over a set of dates and times, recurring at regular intervals, over a given period. Exclude start date, used in DatePeriod::__construct(). The number of recurrences, if the DatePeriod instance had been created by explicitly passing $recurrences.
Why? A period (menstruation) is normal vaginal bleeding that is a natural part of a healthy monthly cycle for a person with a uterus and ovaries. Every month, in the years between puberty (typically age 11 to 14) and menopause (typically about age 51), your body readies itself for pregnancy.
In PHP, the period is the concatenation operator. Putting the periods in tells PHP to concatenate "mod/"
to $modarrayout
and then concatenate the resulting string to "/bar.php"
. See page String Operators.
The following is the same in this case:
require("mod/$modarrayout/bar.php");
Using string concatenation is a different approach to string building.
I suggest reading the manual page on strings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With