PHP code example of joachim-n / mutable-typed-data
1. Go to this page and download the library: Download joachim-n/mutable-typed-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/ */
joachim-n / mutable-typed-data example snippets
foreach ($simple_data as $item) {
// Nothing.
}
foreach ($complex_data as $name => $item) {
print $item->value;
}
foreach ($multiple_data as $delta => $item) {
print $item->value;
}
foreach ($simple_data->items() as $item) {
print $item->value; // Same as $simple_data->value
}
foreach ($multiple_simple_data->items() as $item) {
print $item->value;
}