PHP code example of paliari / php-text-object

1. Go to this page and download the library: Download paliari/php-text-object 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/ */

    

paliari / php-text-object example snippets



$file_name = 'file.txt';

$result = FileFacade::create()
    ->addColumn('', 'id', 0, 2, Types::INT, true)
    ->addColumn('', 'c1', 2, 3, Types::DOUBLE)
    ->addColumn('', 'c2', 5, 10, Types::NUMBER_STRING)
    ->addColumn('', 'c3', 15, 5, Types::STRING)
    ->addColumn('', 'c4', 20, 10, Types::EMAIL)
    ->addColumn('', 'c5', 30, 19, Types::DATE_TIME, ['format' => 'Y-m-d H:i:s', '