PRINTF("THE RESULT IS $%15F\N", 123.42 / 12);PRINTF("THE RESULT IS $%15.2F\N", 123.42 / 12);$h = 'House';printf("[%s]\n", $h); // Standard string outputprintf("[%10s]\n", $h); // Right justify with spacesprintf("[%-10s]\n", $h); // Left justi    Read More
posted @ 2013-02-09 01:15
findumars
Views(3410)
Comments(0)
Diggs(0)
        
            
        
        
        
<?php$paper[] = "Copier";$paper[] = "Inkjet";$paper[0] = "Copier";$paper[1] = "Inkjet";print_r($paper);for ($j = 0 ; $j < 4 ; ++$j) echo "$j: $paper[$j]<br>";$paper['copier'] = "Copier & Multipurpose";$paper['ink    Read More
posted @ 2013-02-09 00:41
findumars
Views(336)
Comments(0)
Diggs(0)
        
            
        
        
        
<?php$names = fix_names("WILLIAM", "henry", "gatES");echo $names[0] . " " . $names[1] . " " . $names[2];function fix_names($n1, $n2, $n3){ $n1 = ucfirst(strtolower($n1)); $n2 = ucfirst(strtolower($n2)); $n3 = ucfirst(strtolower($n3)); return array    Read More
posted @ 2013-02-09 00:26
findumars
Views(1823)
Comments(0)
Diggs(0)
        
            
        
        
        
<?phpinclude("library.php");include_once("library.php");require_once("library.php");echo "Hello world";$username = "Fred Smith";echo $username;echo str_repeat("Hip ", 2); // Repeat stringecho strtoupper("hooray!"); // String to    Read More
posted @ 2013-02-09 00:15
findumars
Views(490)
Comments(0)
Diggs(0)
        
                    
                
浙公网安备 33010602011771号