Skip to content

Dump array as text. A simple and cool tool for php cli

Notifications You must be signed in to change notification settings

abbas980301/varDumpAsText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

StyleCI

varDumpAsText

Simple and cool tool for echo array as text in command line.

Usage

include 'varDumpAsText.php';

$array = [
	// ...
];
echo rt($array)

Output example

rt() Output

[ref]
ref.update_id= 404926057
ref.message.message_id= 4456
ref.message.from.id= 000000
ref.message.from.first_name= عباس
ref.message.from.last_name= شکیبا
ref.message.from.username= abbasShakiba
ref.message.chat.id= 000000
ref.message.chat.first_name= عباس
ref.message.chat.last_name= شکیبا
ref.message.chat.username= abbasShakiba
ref.message.chat.type= private
ref.message.date= 1493642471
ref.message.text= Hello

var_dump output

array(2) {
  ["update_id"]=>
  int(404926057)
  ["message"]=>
  array(5) {
    ["message_id"]=>
    int(4456)
    ["from"]=>
    array(4) {
      ["id"]=>
      int(000000)
      ["first_name"]=>
      string(8) "عباس"
      ["last_name"]=>
      string(10) "شکیبا"
      ["username"]=>
      string(12) "abbasShakiba"
    }
    ["chat"]=>
    array(5) {
      ["id"]=>
      int(000000)
      ["first_name"]=>
      string(8) "عباس"
      ["last_name"]=>
      string(10) "شکیبا"
      ["username"]=>
      string(12) "abbasShakiba"
      ["type"]=>
      string(7) "private"
    }
    ["date"]=>
    int(1493642471)
    ["text"]=>
    string(5) "Hello"
  }
}

Similar projects


If you like it, start it! 🌟

About

Dump array as text. A simple and cool tool for php cli

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages