As you know, PHP can return only one value from the function. However, there is a simple workaround – we return an indexed array from function and immediately split it into variables using list():
-
-
function ret()
-
{
-
//something useful here
-
}
-
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
Share this post with a friend











Leave a Reply