Jump to content

Recommended Posts

Plz solve this question for me and give me the code..anyone generous ?


Write a simple function which iterates through a one dimensional array of intergers and searches for a particular value. The function will return true, if the integer is found in the array, false otherwise. The function will accept both the array and the integer as parameters

Write a function that:
= Accepts an array of numbers as the first parameter
= Accepts an integer as the second parameter
= Has a loop wh ich iterates through the array
= Returns true if the array contains the given number
= Returns false if the array does not contain the given number

Thanks a lot...Btw thats one question not two..The upper part is the description, and the lower part is in detail..I cannot do it cuz im new  to php..thanks a lot...i would appreciate ur help
Link to comment
https://forums.phpfreaks.com/topic/33757-asapschool-work/
Share on other sites

a couple of things. we're not here to write your scripts for you, especially if it's schoolwork. if you have some code already that you're having trouble with, post it here.
also, please do not demand that your problem be solved "ASAP!! School work!!" as there are many problems here that recieve equal priority.
Link to comment
https://forums.phpfreaks.com/topic/33757-asapschool-work/#findComment-158280
Share on other sites

As was mentioned above, there are two major points to your post that are going to get people to frown upon helping you with it:

1) It is against forum guidelines to mark posts as urgent like this.

2) It appears that you are asking for someone to do your work for you. That is not what we're here for. We are here to [b]help you learn[/b], not to do your work for you.

If you have a project that you cannot solve, ask questions to help you understand it better. If you don't learn these things as you go along, you'll end up shooting yourself in the foot later in the class.

Now, with all that said, the problem you pose is a quite simple one to fix. If you will break the function you are to write down into pieces and ask about the individual parts you don't understand, I'm sure we can help point you in the right direction and give you some ideas for things to try, but you have to be willing to learn. I really hope that learning is your ultimate goal in all this ;)

Good luck!
Link to comment
https://forums.phpfreaks.com/topic/33757-asapschool-work/#findComment-158284
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.