0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.15.12.133


Current Path : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlNode/
Upload File :
Current File : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlNode/addClass.md

---
title: addClass
---

```php
addClass ( mixed $class )
```

| Parameter | Description
| --------- | -----------
| `class`   | Specifies one or more class names to be added.

Adds one or more class names to the current node.

**Remarks**

* To add more than one class, separate the class names with space or provide them as an array.

**Examples**

```php
$node->addClass('hidden');
$node->addClass('article important');
$node->addClass(array('article', 'new'));
```