0

(1)You have a PHP 1 dimensional array. Please write a PHP function that takes 1 array as its parameter and returns an array. The function must delete values in the input array that shows up 3 times or more? For example, if you give the function array(1, 3, 5, 2, 6, 6, 6, 3, 1, 9) the funciton will return array(1, 3, 5, 2, 3, 1, 9)
(2) What is the PHP code to echo an image path in the existing wordpress theme without hard coding the url / file path?

2
Contributors
3
Replies
31
Views
2 Years
Discussion Span
Last Post by diafol
0

Please write a PHP function...

As a member with 120 posts at the time of typing, you should be aware of our requirements. Please read the house rules and the php sticky. So please no more "gimme" threads.

Show what you've done so far.

Edited by diafol

0

This is not my need but a person asked on facebook.

Doesn't matter.
Tell them to join daniweb and ask their own question.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.