1 2 3 4
<?php foreach($final as $key => $val) { if (is_array($val) && count($val) == 1) $final[$key] = $val[0]; ...
PHP convert single itemed sub-a...
by paulswansea.myopenid.com,
August 25, 2010 20:45,
No refactoring, tagged with php, multidimensional-array, 2d array
I tried using array_walk to...
1 2 3 4
<?php
public function get_usd_value($date)
{
...
PHP What is bad in this code?
by https://www.google.com/accounts/o8/id?id=AItOawk89fkb9x-moiNmY07jOpKHwIT1tUTiK6M,
August 17, 2010 15:53,
1 refactoring, tagged with php, array, array string loop each
I know that variable naming...
1 2 3 4
class FormComponents
{
/*
...
PHP HTML Select Menu Template
by letseatfood.myopenid.com,
August 11, 2010 02:28,
1 refactoring, tagged with php, template, html, select_tag
This method outputs a stand...
1 2 3 4
<?php $text = htmlentities($_POST['text']); ...
PHP Sanitizing a submitted Foru...
Lets say I am building a fo...
1 2 3 4
<?php //Instantiate Router instance $router = new Router(); ...
PHP Router class for determinin...
Hi, this is my first time p...
1 2 3 4
<?php class MyClass { ...
PHP Exception handling
by xrstf.myopenid.com,
July 20, 2010 16:30,
1 refactoring, tagged with php, exceptions, transactions, pdo
I've got this pattern all o...
1 2 3 4
<?php function cat_paging() { ...
PHP Set apart this function to ...
I want to setapart paging l...
1 2 3 4
<?php function shorturl($url){ $length = strlen($url); ...
PHP Short URL Function with PHP
A code block for php coders...
1 2 3 4
<? # Domain Name Variable ...
PHP Check Server Status with PHP
by arthurkingman.myopenid.com,
May 06, 2010 13:07,
6 refactorings, tagged with php, check server status
Here's server status checke...
1 2 3 4
<?php // char coding ...
PHP Get Meta Information of an ...
by arthurkingman.myopenid.com,
May 01, 2010 20:52,
1 refactoring, tagged with php, get meta information, get url information
Hello Php Coders,
It'll ...
1 2 3 4
/* IBAN Validator * Jack ODERMAN * OPENGL License */ ...
PHP Iban Validation with Php
by jackoder.myopenid.com,
April 04, 2010 14:56,
No refactoring, tagged with php, iban validator, validate, iban
Hello Php Coders,
You ca...
1 2 3
<?php function clean($string){ ...
PHP Register/Login Script
by penaf.myopenid.com,
March 12, 2010 23:45,
13 refactorings, tagged with login, register, mysql, php
Hello People,
This websi...
1
$outputstr = preg_replace('/[-]{2,}/','-',trim(strtolower(str_replace(' ','-',preg_replace('/[^A-Z0-9- ]+/i','',$inputstr))),'-'));
PHP Trimming excess from string
by paulswansea.myopenid.com,
February 05, 2010 16:07,
4 refactorings, tagged with php, regex, replace
I'm trying to get an input ...
1 2 3 4
<?php /** ...
PHP GDLib Progressbar Class
by gwrtheyrn,
January 13, 2010 21:07,
No refactoring, tagged with php, gdlib, image, png, progressbar
A quick progressbar class u...
1 2 3 4
<?php /** ...
PHP GDLib Progressbar Class
by gwrtheyrn,
January 13, 2010 21:06,
No refactoring, tagged with php, progressbar, gdlib, OOP Class, image
A quick PHP progressbar cla...
1 2 3 4
<?php // $arraydata contains the mysql results in array ...
PHP array to csv
hi guys, is there other bet...
1 2 3 4
<?php /** * PDO database wrapper for MySQL. ...
PHP PDO database wrapper
Having tried PDO many moons...
1 2 3 4
<?php /** * Database: MySQL connection ...
PHP MySQL database class
This is a class to do all t...
1 2 3 4
<?php function word_limiter( $text, $limit = 30, $chars = '0123456789' ) { if( strlen( $text ) > $limit ) { ...
PHP Limit amount of words displ...
It returns a string with a ...
1 2 3 4
<?php public static function addUser($username, $email, $password) ...
PHP User Registration Function
by gwrtheyrn,
July 24, 2009 20:05,
3 refactorings, tagged with php, registration, user, mysql, real_escape_string
Is this user registration f...
1 2 3 4
/** * Generates a multi-column table from an array * ...
PHP Generate table from array
This function generates a m...
1 2 3 4
<?php if (!defined('ANTIHACK')) ...
PHP php mysql wrapper begginer
by fantomel,
April 03, 2009 14:33,
5 refactorings, tagged with php, mysql, mysql wrapper, wrappers, wrap, simple
Hello ppl i'm new to php\\O...
Hello coders,
I'll share...