jjmusicpro Posted September 11, 2008 Share Posted September 11, 2008 i was wondering how to do i make another function in my php script, then call it later int he script? so i have a function called enterinto ssrpm... Then i wanted to call that later with some paramaters. Link to comment https://forums.phpfreaks.com/topic/123809-how-to-call-another-function/ Share on other sites More sharing options...
lemmin Posted September 11, 2008 Share Posted September 11, 2008 You should be able to figure that out by looking at any kind of code snippet. function enterinto(arg1, arg2) { //do something } ssrpm("one", "two"); Link to comment https://forums.phpfreaks.com/topic/123809-how-to-call-another-function/#findComment-639244 Share on other sites More sharing options...
jjmusicpro Posted September 11, 2008 Author Share Posted September 11, 2008 wouldnt it be like this?> function enterinto(arg1, arg2) { //do something } enterinto("one", "two"); Link to comment https://forums.phpfreaks.com/topic/123809-how-to-call-another-function/#findComment-639246 Share on other sites More sharing options...
Mchl Posted September 11, 2008 Share Posted September 11, 2008 It wouldn't function enterinto($arg1,$arg2) { } enterinto("one","two"); Link to comment https://forums.phpfreaks.com/topic/123809-how-to-call-another-function/#findComment-639248 Share on other sites More sharing options...
lemmin Posted September 11, 2008 Share Posted September 11, 2008 Yeah sorry, I really wasn't paying attention when I wrote that. Mchl is right. Link to comment https://forums.phpfreaks.com/topic/123809-how-to-call-another-function/#findComment-639379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.