strval
strval — Get string value of a variable.Description
strval( mixed $values ): stringGet the string value of a variable. See the documentation on string for more information on converting to string. This function performs no formatting on the returned value. If you are looking for a way to format a numeric value as a string, please see sprintf() or number_format().
Parameters
value
The variable that is being converted to a string.
value may be any scalar type or an object that implements the __toString() method. You cannot use strval() on arrays or on objects that do not implement the __toString() method.
Return Values
The string value of value.More information about strval on official PHP documentation site
strval - Popular snippets
- PHP 8.1 / MySQL 8.0 printf phpversion strval json_encode
last run:
2022-05-07 12:47:09
6
- PHP 8.1 / MySQL 5.7 strval decbin print_r
last run:
2022-06-17 13:17:07
5
- PHP 8.1 / MySQL 5.7 strval decbin print_r
last run:
2022-06-17 13:24:34
4
- PHP 8.0 / MySQL 5.7 strval decbin strlen
last run:
2021-12-06 18:40:18
4
- PHP 8.1 / MySQL 5.7 strval decbin print_r
last run:
2022-06-17 13:12:03
2
- PHP 8.0 / MySQL 5.7 uasort strval print_r
last run:
2022-04-12 08:52:03
2
- PHP 8.0 / MySQL 5.7 strval print_r
last run:
2022-01-06 07:55:52
2
- PHP 8.0 / MySQL 5.7 strval decbin strlen substr
last run:
2022-02-05 20:37:55
2
- PHP 8.0 / MySQL 5.7 strval strlen decbin substr
last run:
2021-08-09 19:36:43
2
- PHP 8.0 / MySQL 5.7 strval strlen decbin substr
last run:
2021-08-09 19:34:00
2
strval - New snippets
-
PHP 7.4 / MySQL 5.7 mysqli_prepare json_decode strval
added at:
2023-01-19 07:08:15
1
-
PHP 7.4 / MySQL 5.7 srand microtime rand strval
added at:
2022-11-30 22:40:04
1
-
PHP 7.4 / MySQL 5.7 srand microtime rand strval
added at:
2022-11-30 22:39:12
1
-
PHP 8.1 / MySQL 5.7 strval strlen
added at:
2022-09-15 14:09:06
1
-
PHP 8.1 / MySQL 5.7 strval strlen
added at:
2022-09-15 14:08:49
1
-
PHP 8.1 / MySQL 5.7 strval strlen
added at:
2022-09-15 13:14:25
1
-
PHP 8.1 / MySQL 5.7 strval strlen
added at:
2022-09-15 13:14:15
1
-
PHP 8.1 / MySQL 5.7 strval decbin print_r
added at:
2022-06-17 13:17:09
4
-
PHP 8.1 / MySQL 5.7 strval decbin var_dump substr_count print_r
added at:
2022-06-17 13:16:57
1
-
PHP 8.1 / MySQL 5.7 strval decbin var_dump substr_count print_r
added at:
2022-06-17 13:16:31
1