PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Feb 24, 2018 10:28 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Oct 20, 2003 10:56 am 
Offline
Site Admin

Joined: Thu Apr 18, 2002 3:14 pm
Posts: 1767
Location: Montreal, CA
Writing a code snippet should be easy, and self explanatory.

First, check if a code snippet that does what your does already exists. If it does, check to see if it's done in a similiar way. If it does, include your code snippet in that snippet's thread. If not, give your snippet a new thread. Also, try and post a link in the older thread about your snippet, and vice versa.

The code snippets should be named in a simple way, such as

Type: Name

So for example, a code snippet for Regular expressions for Postal codes should be named:

Regex: Postal Codes

Try to follow everyone else's lead, and using existing types if they are already being used.

Snippets should describe what they do, along with a simple sample.

Code Snippets will assumed to be for use in PHP. If the code snippet is NOT PHP, define it in the subject line.

CSS: Three Column Layout
SQL: Country Codes


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2003 8:49 pm 
Offline
DevNet Resident
User avatar

Joined: Sat Jan 25, 2003 2:49 am
Posts: 1094
Excellent, I should be an expert at this ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 8:08 pm 
Offline
DevNet Resident
User avatar

Joined: Thu Oct 16, 2003 5:49 pm
Posts: 1972
Location: Manchester (UK)
Might also be useful to show requirements if any. E.g. Some functions only work on newer versions of PHP, for example, file_put_contents()


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group