Ken2k7 Posted May 22, 2008 Share Posted May 22, 2008 Hello, I'm trying to make a function that takes in a string and an uploaded FILE. Would it just be: function blah ($str, $file) Or would it be different? I just need the function headers. Thanks in advance, Ken Link to comment https://forums.phpfreaks.com/topic/106843-php-function/ Share on other sites More sharing options...
Darklink Posted May 22, 2008 Share Posted May 22, 2008 Yes. That's all all you need. The parameters do not need any data type definitions like other languages. <?php function blah($str, $file) { // Process goes here } ?> Link to comment https://forums.phpfreaks.com/topic/106843-php-function/#findComment-547714 Share on other sites More sharing options...
Ken2k7 Posted May 22, 2008 Author Share Posted May 22, 2008 Thank you! Link to comment https://forums.phpfreaks.com/topic/106843-php-function/#findComment-547727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.