(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?

Recommended Answers

All 3 Replies

Member Avatar for diafol

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.

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

Member Avatar for diafol

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.