ConFoo Montreal 2026: Call for Papers

Voting

: max(seven, nine)?
(Example: nine)

The Note You're Voting On

synnus at gmail dot com
5 years ago
<?php

// just use extends volatile for use array
// is verry good

class libvar extends Volatile
{
private
$_adresse = '127.0.0.1';
private
$_port = 10000;

public
$socket;
public
$list_socket = array();
public
$list_error = array();

public function
__construct(){ }

public function
set_list($val) { $ct = count($this->list_socket); $this->list_socket[ $ct ] = $val; return $ct; }
public function
set_socket($val) { $this->socket = $val; return $this->socket; }
public function
set_error($val) { $this->list_error[ count($this->list_error) ] = $val; }

public function
unset_list($val) { unset($this->list_error[ $val ]); }

public function
get_socketinlist($val) { return $this->list_socket[$val]; }
public function
get_adresse() { return $this->_adresse; }
public function
get_port() { return $this->_port; }
public function
get_socket() { return $this->socket; }
}

?>

<< Back to user notes page

To Top