GIDForums  

Go Back   GIDForums > Site Info and Feedback > GIDNetwork™ > Learning Journal by J de Silva
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Jun-2003, 15:19
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about

articles -> output


I took a look at the /array article today, don't know why but I did.

there are some nice examples.
but no output.

Newbies won't be able to see whats in an array, when they don't know what the output will be.

I suggest you to put a print_r(); output for the arrays..

the php function you posted today (limit words)
has the same problem.

you put an 'how to use' in there, but no output.

I had to lookup the preg_split function since i've never used it before.
then I knew what the function does.
(btw, you are looking for a space, wont split(" ", $str); work?)
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #2  
Old 05-Jun-2003, 19:47
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
I see your point about outputting the array. I will review these articles over the weekend.

re: wont split(" ", $str); work?

I had thought of that and also str_word_count() before. Think about this string:

"the goat.\r\n\r\nWell, whatever"

'goat.\r\n\r\nWell,' would be one word if the function just looks for ' '.
 
 

Recent GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Related articles' php /mysql question JdS MySQL / PHP Forum 4 06-Sep-2002 10:17
Submitting articles u wrote... JdS Advertising & Affiliates Forum 0 11-Aug-2002 01:53

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:16.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.