- print_r: documentation ( source)
- compact: documentation ( source)
<?php
$name = 'test';
$id = 15;
$start_date = 'date';
$end_date = 'another_date';
$status = 'some status';
$details = 'a line of text';
$ar_var = compact('name', 'id', 'start_date', 'end_date', 'status', 'details');
print_r($ar_var);