ConFoo Montreal 2026: Call for Papers

Voting

: six plus three?
(Example: nine)

The Note You're Voting On

sarlak
14 years ago
<?php
$att
= 'attribueName';

// You can access an element's attribute just like this :
$attribute = $element->attributes()->$att;

// This will save the value of the attribute, and not the objet
$attribute = (string)$element->attributes()->$att;

// You also can edit it this way :
$element->attributes()->$att = 'New value of the attribute';
?>

<< Back to user notes page

To Top