Title: VAriable value
Last modified: August 19, 2016

---

# VAriable value

 *  [danleroux](https://wordpress.org/support/users/danleroux/)
 * (@danleroux)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/variable-value/)
 * I’m new to wordpress and php beginner and I’m learning how to debug the code.
   I’m building a widget and I want to see the value of a variable but I don’t know
   how cause echo and var_dump won’t output anything inside the widget.
 * add_filter(‘filter’, myCallBack);
 * function myCallBack($content){
    //here I would like to see the value of $content
   but var_dump($content); //nothing outputted echo $content; //nothing here either
   return $content }
 * Thanks in advance for the help.

The topic ‘VAriable value’ is closed to new replies.

## Tags

 * [add_filter](https://wordpress.org/support/topic-tag/add_filter/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 0 replies
 * 1 participant
 * Last reply from: [danleroux](https://wordpress.org/support/users/danleroux/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/variable-value/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
