28 entries for "
array" as
partial match | search took 0.072 seconds
information | domaincheck | 15 matches
line 47: $whoisservers = array(array('de','whois.denic.de'),...
line 48: array('com','rs.internic.net'),...
line 49: array('net','rs.internic.net'),...
line 50: array('org','whois.networksolutions.com'),...
line 51: array('info','whois.afilias.net'),...
line 52: array('biz','whois.biz'),...
line 53: array('at','whois.nic.at'),...
line 54: array('ch','whois.nic.ch'),...
line 55: array('li','whois.nic.ch'),...
line 56: array('co.uk','whois.nic.uk'),...
line 57: array('tv','whois.<a href = "http://www.tv" target = "_blank">www.tv</a>'),...
line 58: array('cc','whois.enicregistrar.com'),...
line 59: array('dk','whois.dk-hostmaster.dk'),...
line 60: array('it','whois.nic.it'),...
line 61: array('ws','whois.worldsite.ws'));...
file handling | read and select csv | 13 matches
line 1: this functions read csv (comma seperated values) files and return the content as an array....
line 10: // reads a csv file and returns a two-dimensional array of lines/fields...
line 13: $data_array = file($file);...
line 14: for ( $i = 0; $i < count($data_array); $i++ )...
line 16: $parts_array[$i] = explode($delimiter,$data_array[$i]);...
line 18: return $parts_array;...
line 21: // reads a csv file and returns an two-dimensional array of lines/fields...
line 24: $data_array = file($file);...
line 25: for ( $i = 0; $i < count($data_array); $i++ )...
line 27: $parts_array[$i] = explode($delimiter,$data_array[$i]);...
line 28: if(trim(strtolower($parts_array[$i][$field])) == trim(strtolower($query)))...
line 30: $result_array[] = $parts_array[$i];...
line 33: return $result_array;...
array handling | array multi sort | 12 matches
line 1: sort multidimensional arrays by field specified....
line 2: specify the key by which you want your multiarray sorted....
line 8: // demo array to sort...
line 9: $latest_array = array(...
line 10: array('news','1234567890','sdf','asdpojq'),...
line 11: array('news','1234567892','uruy','xbuqiwpo'),...
line 12: array('comment','1234567893','fghj','mjktyu'),...
line 13: array('article','1234567891','cvmo','pjklgg'),...
line 14: array('news','1234567894','qwenb','asbhtyhj'),...
line 26: // do the array sorting...
line 27: usort($latest_array, 'cmpi');...
line 31: print_r($latest_array);...
image editing | analog GD clock | 12 matches
line 19: $array['hour'] = 0-(date('h')*30)-270;...
line 20: $array['min'] = 0-(date('i')*6)-270;...
line 21: $array['sec'] = 0-(date('s')*6)-270;...
line 69: ImageTTFText($img, $smfontsize, $array['hour'], ($width/2)-1, ($height/2)-2, $blue, $font, $hstr);...
line 70: ImageTTFText($img, $smfontsize, $array['hour'], ($width/2)-3, ($height/2)-4, $gray2, $font, $hstr);...
line 71: ImageTTFText($img, $smfontsize, $array['hour'], ($width/2)-2, ($height/2)-3, $white, $font, $hstr);...
line 75: ImageTTFText($img, $smfontsize, $array['min'], ($width/2)-1, ($height/2)-2, $blue, $font, $mstr);...
line 76: ImageTTFText($img, $smfontsize, $array['min'], ($width/2)-3, ($height/2)-4, $gray2, $font, $mstr);...
line 77: ImageTTFText($img, $smfontsize, $array['min'], ($width/2)-2, ($height/2)-3, $white, $font, $mstr);...
line 81: ImageTTFText($img, $smfontsize, $array['sec'], ($width/2)-1, ($height/2)-2, $blue, $font, $sstr);...
line 82: ImageTTFText($img, $smfontsize, $array['sec'], ($width/2)-3, ($height/2)-4, $gray2, $font, $sstr);...
line 83: ImageTTFText($img, $smfontsize, $array['sec'], ($width/2)-2, ($height/2)-3, $white, $font, $sstr);...
string handling | string replace | 5 matches
line 8: // expects an array with $string => $replacement...
line 10: $replacements = array('_'=>' ','<br>'=>' ,','.txt'=>' (Text)','.php'=>' (PHP)');...
line 42: // preg_replace can be used with arrays as well...
line 44: $patterns = array('/quick/','/brown/','/fox/');...
line 45: $replacements = array('slow','black','bear');...
file handling | remote last modified | 8 matches
line 29: function get_header_array($url)...
line 38: $tmpArray = explode("\n",$raw);...
line 39: for ($i=0;$i<sizeof($tmpArray); $i++)...
line 41: @list($name, $value) = explode(':', $tmpArray[$i], 2);...
line 42: $array[trim($name)]=trim($value);...
line 44: return $array;...
line 51: $array = get_header_array($remote_file);...
line 52: echo $remote_file.' was last modified on '.date('j F Y',strtotime($array['Last-Modified']));...
html and code | simple bar chart | 6 matches
line 14: // add an array per field to show...
line 15: $graphs = array(...
line 16: array('label'=>'whatever', 'color'=>'red', 'amount'=>'30'),...
line 17: array('label'=>'more here', 'color'=>'green', 'amount'=>'36'),...
line 18: array('label'=>'just an example', 'color'=>'blue', 'amount'=>'82'),...
line 19: array('label'=>'even more', 'color'=>'orange', 'amount'=>'4'),...
file handling | file informations | 5 matches
line 20: // $fil_array = stat('path/to/file/');...
line 21: $fil_array = stat(__file__); // demo...
line 23: echo 'filesize: '.ConvertSize($fil_array[7]).'<br>';...
line 24: echo 'last access: '.date('l, F dS 20y - H:i:s',$fil_array[8]).'<br>';...
line 25: echo 'last modified: '.date('l, F dS 20y - H:i:s',$fil_array[9]).'<br>';...
directories | recursive directory listing | 4 matches
line 1: a function to scan directories recursively and save the result to an array...
line 20: $mod_array[] = array(...
line 29: $mod_array[] = array(...
line 40: return $mod_array;...
information | google position | 3 matches
line 9: $querycleaner = array(' '=>'+','%26'=>'&');...
line 23: $despacer = array(' '=>'');...
line 43: $total = end(array_reverse(explode(' ',$outs[1])));...
image handling | list image folder | 3 matches
line 1: this snippet reads a given directory and returns an array of the images found. gets some information about the images as well ....
line 11: $allowed_types = array('png','jpg','jpeg','gif'); // list of filetypes you want to show...
line 16: if(in_array(strtolower(substr($imgfile,-3)),$allowed_types))...
file handling | write to first line of file | 4 matches
line 15: // the old data as array...
line 18: // add new line to beginning of array...
line 19: array_unshift($old_lines,$new_line);...
line 21: // make string out of array...
file handling | line by line | 3 matches
line 1: a rather lenghty solution for reading a file into an array...
line 7: // this is the right way of reading a file line by line into an array...
line 9: $line_array = file('path/to/file.txt');...
html and code | convert html | 2 matches
line 12: $search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript...
line 26: $replace = array ("",...
file handling | file upload | 2 matches
line 12: $allowed = array('image/gif','image/pjpeg','image/jpeg','image/png');...
line 23: if(in_array($HTTP_POST_FILES['userfile']['type'],$allowed))...
communication | send email | 2 matches
line 25: $array = array ("\'" => "'");...
line 26: $message = strtr($message, $array);...
directories | read dir and list | 2 matches
line 16: $array = array ( '_' => ' ' ,$filter => '' );...
line 17: $thefile =strtr ($file_file ,$array );...
forms | keep selected combobox | 2 matches
line 8: // you need the values of your combobox in an array...
line 9: $values = array('us','de','uk','fr','xx');...
array handling | entries per row | 2 matches
line 8: // your data in an array...
line 9: $images = array(...
html and code | alternate row colors | 2 matches
line 8: // just some random data in an array...
line 9: $data = array('this','is','just','an','example','to','show','the','alternating','row','colors');...
string handling | string to columns | 1 match
line 16: $seperators = array(' ' => 'words', '. ' => 'sentences', '<p>' => 'paragraphs');...
string handling | substring examples | 1 match
line 44: $char['reverse'] = join('',array_reverse($char['chars']));...
string handling | number to words | 1 match
line 8: $nwords = array( "zero", "one", "two", "three", "four", "five", "six", "seven",...
databases | mySQL class | 1 match
line 29: $data = array();...
file handling | read file | 1 match
line 2: this will read a remote file and return the content as an array where each line is one item in the array....
information | visitors online | 1 match
line 25: $counter = array($ip=>1);...
information | detect user language | 1 match
line 56: $GLOBALS['_LANG'] = array(...
html and code | view php source | 2 matches
© 2008
phparadise |
go to the top58 hits by 13 users in the last 30 minutes.