• Page:
  • 1

Smart var_dump function in uKnowva : udump()

OFFLINE

Smart var_dump function in uKnowva : udump()

4 years, 10 months ago
When u r using uKnowva 2.4.2 or above, you can use udump() instead of var_dump();

The basic difference is that udump automatically adds the '<pre>' tags

Here is the definition of udump()

/*
 * SMART  var_dump with pre tags. Usually a good tool for developers
 */
function udump($var){
	echo '<pre>';
	var_dump($var);
	echo '</pre>';
}


Use it this way:
$smthing = array(1=>'Some',2=>' kool thing');
udump($smthing);
Last Edit: 4 years, 10 months ago by Vicky Jain.
The following user(s) said Thank You: Ninad Ramade, Nikhil Chaughule, Rajat Pal
  • Page:
  • 1

Upcoming Events

No events found.

Who's Online

5 users online