खोज…


नाम स्थान जैसी कोई चीज नहीं है

myfunc(){
    echo "I will never be executed."
}
another_func(){
    # this "redeclare" overwrites original function
    myfunc(){ echo "I am the one and only"; }
}
# myfunc will print "I will never be executed"
myfunc
# but if we call another_func first
another_func
# it gets overwritten and
myfunc
# no prints "I am the one and only"

नवीनतम घोषणा जीत जाती है। नाम स्थान जैसी कोई चीज नहीं है! हालाँकि, फ़ंक्शंस में अन्य फ़ंक्शंस हो सकते हैं।



Modified text is an extract of the original Stack Overflow Documentation
के तहत लाइसेंस प्राप्त है CC BY-SA 3.0
से संबद्ध नहीं है Stack Overflow