How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask The-PC-Guy Your Own Question
The-PC-Guy, Software Engineer
Category: Programming
Satisfied Customers: 1948
Experience:  Extensive Knowledge in PHP, MYSQL, CSS & Javascript
Type Your Programming Question Here...
The-PC-Guy is online now
A new question is answered every 9 seconds

Need help with a php problem
, Write a function

Customer Question

Need help with a php problem
JA: Thanks. Can you give me any more details about your issue?
Customer: Write a function removeDuplicates($arr) that takes an associative array as aparameter and returns the same associative array except with all duplicate values removed.You may not use the function array_unique for this problem. For example:$arr = array( 'a' => "one", 'b' => "two", 'c' => "three", 'd' => "two", 'e' => "four", 'f' => "five", 'g' => "three", 'h' => "two");print_r(removeDuplicates($arr));Would print:Array( [a] => one [e] => four [f] => five
JA: OK got it. Last thing — Programmers generally expect a deposit of about $18 to help with your type of question (you only pay if satisfied). Now I'm going to take you to a page to place a secure deposit with JustAnswer. Don't worry, this chat is saved. After that, we will finish helping you.
Submitted: 1 year ago.
Category: Programming
Expert:  Michael Hannigan replied 1 year ago.

Hello. Thank you for coming to JustAnswer.

Sorry for the delay and thank you for your patience. My name is Michael. I will be helping you with your question today.

Please let me know if there as any additional information that you think might be pertinent to your question. If I don't hear back from you, I'll provide the best answer I can based on the information you've given so far. You will still be able to reply with additional information or questions at any point during our conversation, and I'll revise the my answer accordingly.

Customer: replied 1 year ago.
The solution needs to be written in PHP and cannot use the array_unique function. Other than that, as long as the output looks like the example, I think we're good. lastly, note that the solution needs to remove all duplicates - i.e. if there are three 2 values, all three of them need to be removed.
Expert:  The-PC-Guy replied 1 year ago.

i will help with this

Expert:  The-PC-Guy replied 1 year ago.

the only issue is I think based on the work involved the question should be worth a little bit more, I am sending an additional service offer, please accept it and I will get started.

Expert:  The-PC-Guy replied 1 year ago.

still interested in help with this?

Related Programming Questions