<?php function defaultValueForReturn(){ return; }// now i test itvar_dump (defaultValueForReturn()); ?>
And this is result:
What about with other programming language such as Python, Javascript, etc.
Check this!
Python.
Code:
#!/usr/bin/env python def defaultValueForReturn(): return type(defaultValueForReturn())
Result:
Javascript.
Code:
function returnValue() { return; } var y = returnValue(); console.log(typeof (y));Result:
undefined
Ruby.
Code:
def defaultValueForReturn() return end y=defaultValueForReturn() print y.classResult:
NilClass
0 comments:
Post a Comment