|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-11-19 10:17 UTC] mutofiyah at gmail dot com
Description:
------------
How i access the b() function?
sorry for bad english
Test script:
---------------
class Coba{
function a(){
function b(){
return 'ABC';
}
return b();
}
}
$a = new Coba();
$a->a();
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
It's work class Coba{ function a(){ function b(){ return 'ABC'; } return b(); } } $a = new Coba(); $a->a(); but it's not work class Coba{ public function a(){ public function b(){ return 'ABC'; } return b(); } } $a = new Coba(); $a->a();