Mysmilies.net die Smilies Datenbank

Script oder Datei finden :

 
-Startseite
-Newsarchiv
-Newsletter
-Mein Dreamcodes
-Scripte
-eBooks
-Online Speicher
-Datenbanken
-Webseiten
-Trickfilm
-Web Grafiken
-Bildbearbeiter
-Browser
-EMail Software
-Ftp Clienten
-Betriebssysteme
-Texteditoren
-Wampserver
-Office Pakete
-Antivirus
-System Cleaner
-Recovery Tools
-Php Schnipsel
-Ajax Schnipsel
-VB Schnipsel
-Tutorials
-Workshops
-Webkatalog
-Leserforum
-Erweiterte Suche
-Sitemap
-Impressum
-neuste Downloads

1. Selfphp (1990)
2. Xampp OS X (1876)
3. Xampp Linux (1865)
4. Xampp Windows (1881)

-neuste Tutorials

1. Samsung S20 rooten (2825)
2. Gratis USA Nummer (16842)
3. RAID (15478)
4. Text auf Grafik (16458)


Tutorials Tag Klasse

 

Tag Klasse

Mit dieser Klasse kann man via RegEx einen bestimmten Code Tag anlegen und Attribute beliebig verändern

Script:

<?php
class tag {
var
$tag, // The type of tag (A, TITLE, etc)
$content, // the contents of the tag
$attribute; // an associative array of the attributes and their values

function tag($tag) {
preg_match('/<(.)\s*([^>]*)>(.*)<\/\1>/i',$tag,$match);
$this->content = $match[3];
$this->tag = $match[1];
$tmp = trim($match[2]);
if (strlen($tmp)){
$tmp = preg_replace('/\s*=\s*/','=',$tmp);
$tmpArray = explode(" ",$tmp);
foreach($tmpArray as $nv) {
list($name, $value) = explode("=",$nv);
$value = (is_null($value)) ? null : preg_replace('/\s*\"*\'*([^\'^\">]*)\"*\'*/',"$1",$value);
$this->attribute[$name] = $value;
}
}

}
function write() {
if (is_array($this->attribute)) {
foreach ($this->attribute as $key=>$value) {
$tmp = $key;
if (!is_null($value)) $tmp .= "=\"$value\"";
$attributes[] = $tmp;
}
$attrString = join($attributes, " ");
}
$return = "<{$this->tag}";
if (strlen($attrString)) $return .= " ".$attrString;
$return .= ">{$this->content}</{$this->tag}>";
return $return;
}
}


?>

 
Seiten : 1
hinzugefügt am : 28.01.2005
Autor : Lyons
Listings ID : 654
Status zum lesen : Gast
gelesen : 6983 mal
[Druckansicht] [Lesercharts] [RSS] [zur Übersicht]
 
 

Die Möglichkeit diesen Artikel zu verlinken :

HTML-Code:

Code zum Einbinden in ein Forum:


Hinweis : Das lesen des Artikels Tag Klasse - listings ID: 654 auf Dreamcodes, sowie Link Verweise auf Internetseiten fremder Anbieter erfolgen auf eigene Gefahr. Dreamcodes haftet nicht für Schäden, die aus der Verwendung des Inhaltes der Artikel erfolgen könnten. Schadenersatzansprüche, aus welchem Rechtsgrund auch immer, sind ausgeschlossen !
-Live Statistik
Datum: 12.07.2025
Uhrzeit: 07:53 Uhr
Online: 357 User
User heute: 78481
User allgem.: 50421472

Eingeloggt als Gast
-Download des Monats
-
-unsere Monats Umfrage
Was ist davon interessanter?

Diverse Wallpaper
Motorrad Wallpaper
HDR Wallpaper
Auto Wallpaper
Personen Wallpaper

-unsere Bestseller