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 (1728)
2. Xampp OS X (1626)
3. Xampp Linux (1617)
4. Xampp Windows (1628)

-neuste Tutorials

1. Samsung S20 rooten (1300)
2. Gratis USA Nummer (14692)
3. RAID (13723)
4. Text auf Grafik (14393)


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 : 6048 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: 24.04.2024
Uhrzeit: 04:03 Uhr
Online: 9 User
User heute: 1500
User allgem.: 33699569

Eingeloggt als Gast
-Download des Monats
-
-unsere Monats Umfrage
Welche Serie ist besser?

The Blacklist
House of the Dragon
Die Ringe der Macht
The Sandman
Manifest

-unsere Bestseller