You get a bonus - 1 coin for daily activity. Now you have 1 coin

Mixed pseudotype in PHP

Lecture



Mixed says that a parameter can take many (but not necessarily all) types.

This can be an integer or fractional number, a string, an array, or an object ... For example, the parameter of type mixed has the standard gettype function () or the settype function () . If it is written that the function returns mixed , this means that the type of the result depends on the operands and is specified when describing the function.

In general, when writing functions, you do not need to type the names of the types! They are needed only to clarify the syntax of a function.

created: 2016-01-25
updated: 2026-03-09
286



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)