Skip to main content
Feb 16, 2010 10:56 PM UTC
Question

Function Trouble

In attempting to parse through my websites contents and extract any information between the <p> tags – I found this function that I have been trying to make work.

I am only getting it to return empty or return ‘Array’ – I have tried numerous things and just can’t seem to get it to work.

Any ideas of what I am missing?

Code Atteched:

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

David_Powers
Inspiring
Feb 17, 2010 11:03 PM UTC

You're not doing much to help others help you. First, you use a really vague subject line. Next, you say you're trying to get "this function" to work. And then you wrap the code in an attachment that you expect others to download, unzip, and examine.

Yes, I went to the trouble of doing all that, but I don't have the faintest idea what type of text you're passing to the function.

What I can tell you, though, is that if you're getting Array as the result, you can examine the contents of the array by using print_r() to display it.

Translate
David_Powers
Inspiring
Feb 17, 2010 11:10 PM UTC

Oh, and another thing. Posting an identical question with a different subject line isn't going to win you many friends either. I have just deleted your duplicate post.

Sorry if this sounds a bit harsh. I know how frustrating it can be if you're struggling with an issue you can't solve, but it's also frustrating trying to help others when they make you run round in circles.

Translate
Feb 18, 2010 1:38 AM UTC

Thanks for your time and effort - I will keep trying new things until I get it to work.

Translate