PHP code example of andreabsferrazza / phoog

1. Go to this page and download the library: Download andreabsferrazza/phoog 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/ */

    

andreabsferrazza / phoog example snippets


// Before autoload
define("PHOOG_ENABLE_HELPERS", true);
echo vip($var);

$x = 0;
$y = array( 0,1,2,3 );
evi($x);
evi($y);

foreach($array as $k=>$v){
    ...
    if($condition) evid($v);
    ...
}
echo sip($var);

$query = "SELECT * 
            FROM whatever";
espd($query);
echo $smth;
echo vit($var);
echo vet($var).PHP_EOL;

$array = array(0,1,2,3,4);
evcd($array);
arsort($array);

sm@smw:~/$ php your_program.php
array (
  0 => 0,
  1 => 1,
  2 => 2,
  3 => 3,
)
sm@smw:~/$