[ create a new paste ] login | about

goboss

Name:
Email:
Site/Blog:
Location: Poland
Default language: PHP
Favorite languages: C, C++, Java
About:

Saved pastes by goboss:

PHP, pasted on Nov 17:
1
2
3
4
5
<?php 

$numbers = array("0", "1", "2", "3");

foreach($numbers as &$value) {
...
view (14 lines, 10 lines of output)
PHP, pasted on Jul 14:
1
2
3
4
5
<?php

class Foo {
  public static function getString() {
    ob_start();
...
view (16 lines)
PHP, pasted on Jul 14:
1
2
3
4
5
<?php

class Foo {
  public static function getString() {
    ob_start();
...
view (16 lines, 2 lines of output)
PHP, pasted on Jul 13:
1
2
3
4
5
<?php
  define('LOOPS', 10000);

  class Foo {
    protected $bar;
...
view (22 lines, 2 lines of output)
PHP, pasted on May 14:
1
2
3
4
5
<?php
  define('LOOPS', 10000);
  /** NULL comparisons */ 

  $t = microtime(true);
...
view (20 lines, 3 lines of output)
PHP, pasted on Mar 9:
1
2
3
4
<?php
$ciag_w_utf8='"ęąćźżńłóń"';
echo htmlentities($ciag_w_utf8,ENT_NOQUOTES,'UTF-8');
?>
view (4 lines, 1 line of output)
PHP, pasted on Feb 13:
1
2
3
4
5
<?php

  /** MAGIC METHOD VS SETTER */

  define('LOOPS', 10000);
...
view (38 lines, 2 lines of output)
PHP, pasted on Dec 1:
1
2
3
4
<?php

$a = array('ab', 'c');
echo strlen($a);
...
view (6 lines, 1 line of output)
PHP, pasted on Nov 27:
1
2
3
4
5
<?php

echo strlen("cat\0");

?>
view (5 lines, 1 line of output)
PHP, pasted on Nov 27:
1
2
3
4
<?php

$food = array("vegetables" => array("carrot", "onion"), 
              "fruit"      => array("apple", "banana"));
...
view (8 lines, 1 line of output)
PHP, pasted on Nov 27:
1
2
3
4
5
<?php

$a[1] = 'ala';
$a[3] = 'ma';
$a[] = 'kota';
...
view (14 lines, 12 lines of output)