I wanted to see what a function does, and I thought of looking at it just like how I find scripts in javascript
I'm looking for something that does the same as javascript's
function sampleFn() {
return 'I am a sample'
}
console.log(sampleFn)
//function sampleFn() {
// return 'I am a sample'
//}
I tried to do
print sampleFn;
echo sampleFn;
print_r(sampleFn);
//sampleFn
var_dump(sampleFn);
//string(11) "the_content"
I just want to know if there is a way to do it the same way javascript console.log() a function out