PHP code example of shasoft / data
1. Go to this page and download the library: Download shasoft/data library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shasoft / data example snippets
// Данные в строку
$str = Str::to([1, true, 2.3, 'Строка']);
// Строку в данные
$data = Str::from($str);
var_dump($data);
// Вывод
array(4) {
[0] => int(1)
[1] => bool(true)
[2] => float(2.3)
[3] => string(12) "Строка"
}