/tech/ - Tech 2.0

Mode: Reply
Name
Subject
Message

Max message length: 4096

Opciones
Files
E-mail
Password

(used to delete files and postings)

Misc

Remember to follow the rules


Choroy 01/14/2025 (Tue) 03:48:50 fb965e No. 15851
No conocía ésta propiedad sobre el encapsulamiento. Me pregunto si será hackeable de alguna manera. [orange]?php class Shape { private int $x; private int $y; private string $color; function __construct($x = 1, $y = 2, $color = "#FAFAFA") { $this->x = $x; $this->y = $y; $this->color = $color; } public function create(Shape $source) { var_dump($source->x); $this->x = $source->x; $this->y = $source->y; $this->color = $source->color; } } $s1 = new Shape(); $s2 = new Shape(3, 4, "#4e4e4e"); var_dump( $s1 ); $s1->create($s2); var_dump( $s1 ); ?>
puta que es feo el código de php
>>15852 y ahora php corre en front...
>>15852 Llegaron los pendejines jajascript. Arranquen.
>>15859 >jajascript Jajié.

Delete
Report