Tuscanbot Posted November 19, 2013 Share Posted November 19, 2013 Hi guys,I am trying to understand these questions regarding function and how or where can i get some knowledge to understand and create the code.questions are:1. Open the text file “status.txt” as read only using variable $handle to store the file handle.2. Begin a session. (what does it mean begin session? does it mean start using the if condition?)3. Return the number of elements in array $days. 4. Convert an array $data with five elements into a string that is delimited by tab. (what does it mean by delimited by tab?)5. Check if the form text item "status" obtained via get method is empty.Thank you in advance! Link to comment https://forums.phpfreaks.com/topic/284064-beginner-php-function-questions/ Share on other sites More sharing options...
.josh Posted November 19, 2013 Share Posted November 19, 2013 what have you tried? you could have gotten these from literally putting each question as-is in google... 1. Open the text file “status.txt” as read only using variable $handle to store the file handle. fopen 2. Begin a session. (what does it mean begin session? does it mean start using the if condition?) session_start 3. Return the number of elements in array $days. count 4. Convert an array $data with five elements into a string that is delimited by tab. (what does it mean by delimited by tab?) implode 5. Check if the form text item "status" obtained via get method is empty. $_GET using empty Link to comment https://forums.phpfreaks.com/topic/284064-beginner-php-function-questions/#findComment-1459020 Share on other sites More sharing options...
Tuscanbot Posted November 19, 2013 Author Share Posted November 19, 2013 Thank you JOSH! Yes I did search in google for question 1 and 5, but I want to double check. once again, thank you! Link to comment https://forums.phpfreaks.com/topic/284064-beginner-php-function-questions/#findComment-1459025 Share on other sites More sharing options...
AbraCadaver Posted November 19, 2013 Share Posted November 19, 2013 what have you tried? you could have gotten these from literally putting each question as-is in google... 1. Open the text file “status.txt” as read only using variable $handle to store the file handle. fopen 2. Begin a session. (what does it mean begin session? does it mean start using the if condition?) session_start 3. Return the number of elements in array $days. count 4. Convert an array $data with five elements into a string that is delimited by tab. (what does it mean by delimited by tab?) implode 5. Check if the form text item "status" obtained via get method is empty. $_GET using empty A+ for this assignment. Link to comment https://forums.phpfreaks.com/topic/284064-beginner-php-function-questions/#findComment-1459058 Share on other sites More sharing options...
.josh Posted November 19, 2013 Share Posted November 19, 2013 always amazes me the people who don't wanna try on their coding homework, asking others to do it for them.. it's not like it's required course or anything.. why bother even taking the class? Link to comment https://forums.phpfreaks.com/topic/284064-beginner-php-function-questions/#findComment-1459070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.