
PHP Funktionen : PHP Übersicht : PHP Manual
trim
PHP
Function trim / PHP
Funktion trim
phplist »
Webkatalog Script - Link Script »
PHP Function Coder »
trim
- PHP Funktion
- trim ( phplist Code 100% Relevanz )
- Rubrik
- String-Funktionen
- Kurzform
- trim -- Entfernt Whitespaces (oder andere Zeichen) am Anfang und Ende eines Strings
- Vorschau
- ...trim trim (PHP 3, PHP 4, PHP 5) trim -- Entfernt Whitespaces (oder andere Zeichen) am Anfang und Ende eines Strings Beschreibung string trim ( string str [, string charlist] ) Die Funktion entfernt Whitespaces an Anfang und Ende von str und gibt den String dann . Ohne Verwendung des zweiten Parameters entfernt trim() folgende Zeichen: " " ( ASCII 32 ( 0x20...
- PHP Manual
- [ trim php.net ]
- PHP Funktion
- substr ( phplist Code 40% Relevanz )
- Rubrik
- String-Funktionen
- Kurzform
- substr -- Gibt einen Teil eines Strings zurück
- Vorschau
- ...rest = substr ( "abcdef" , 2 , - 1 ); // gibt "cde" $rest = substr ( "abcdef" , 4 , - 4 ); // gibt "" $rest = substr ( "abcdef" , - 3 , - 1 ); // gibt "de" ?> Siehe auch strrchr() , substr_replace() , preg_match() , trim() , mb_substr() und wordwrap() . substr_replace trim...
- PHP Manual
- [ substr php.net ]
- PHP Funktion
- Stream Functions ( phplist Code 30% Relevanz )
- Rubrik
- Funktionsreferenz
- Kurzform
- -----
- Vorschau
- ... ( $sock , "Content-length: " . strlen ( $data ) . "\r\n" ); fwrite ( $sock , "Accept: */*\r\n" ); fwrite ( $sock , "\r\n" ); fwrite ( $sock , "$data \r\n " ); fwrite ( $sock , "\r\n" ); $headers = "" ; while ( $str = trim ( fgets ( $sock , 4096 ))) $headers .= "$str \n " ; echo "\n" ; $body = "" ; while (! feof ( $sock )) $body .= fgets ( $sock , 4096 ); fclose ( $sock ); ?> Beispiel 3. Writing data to a compressed file <?php /* ...
- PHP Manual
- [ Stream Functions php.net ]
- PHP Funktion
- OCI-Collection->trim ( phplist Code 29% Relevanz )
- Rubrik
- Oracle 8 Funktionen
- Kurzform
- OCI-Collection->trim -- Trims elements from the end of the collection
- Vorschau
- ...OCI-Collection->trim size"HREF="function.oci-collection-size.html"> append"HREF="function.oci-lob-append.html"> OCI-Collection->trim (no version information, might be only in CVS) OCI-Collection->trim -- Trims elements from the end of the collection Beschreibung class OCI-Collection { bool trim ( int num ) } Trims num of elements from the end of the collection. Gibt bei Erfolg TRUE , im Fehlerfall FALSE . Parameter Liste num...
- PHP Manual
- [ OCI-Collection->trim php.net ]
- PHP Funktion
- String-Funktionen ( phplist Code 29% Relevanz )
- Rubrik
- Funktionsreferenz
- Kurzform
- -----
- Vorschau
- ...Stellt bestimmten Zeichen eines Strings ein "\" voran (wie in C) addslashes -- Stellt bestimmten Zeichen eines Strings ein "\" voran bin2hex -- Wandelt Binär-Daten in ihre hexadezimale Entsprechung um chop -- Alias von rtrim() chr -- Gibt ein einzelnes Zeichen chunk_split -- Zerlegt einen String in Teile gleicher Länge convert_cyr_string -- Konvertiert Strings von einem kyrillischen Zeichensatz in einen anderen convert_uudecode -- Dekodiert ...
- PHP Manual
- [ String-Funktionen php.net ]
- PHP Funktion
- libxml_get_errors ( phplist Code 19% Relevanz )
- Rubrik
- libxml Functions
- Kurzform
- libxml_get_errors -- Retrieve array of errors
- Vorschau
- ... : $return .= "Warning $error -> code: " ; break; case LIBXML_ERR_ERROR : $return .= "Error $error -> code: " ; break; case LIBXML_ERR_FATAL : $return .= "Fatal Error $error -> code: " ; break; } $return .= trim ( $error -> message ) . " \n Line: $error -> line" . " \n Column: $error -> column" ; if ( $error -> file ) { $return .= " \n File: $error -> file" ; } return "$return \n\n...
- PHP Manual
- [ libxml_get_errors php.net ]
- PHP Funktion
- Socket Funktionen ( phplist Code 19% Relevanz )
- Rubrik
- Funktionsreferenz
- Kurzform
- -----
- Vorschau
- ...socket_write ( $msgsock , $msg , strlen ( $msg )); do { if ( FALSE === ( $buf = socket_read ( $msgsock , 2048 ))) { echo "socket_read() fehlgeschlagen: Grund: " . socket_strerror ( $ret ) . "\n" ; break 2 ; } if (! $buf = trim ( $buf )) { continue; } if ( $buf == 'quit' ) { break; } if ( $buf == 'shutdown' ) { socket_close ( $msgsock ); break 2 ; } $talkback = "PHP: Sie haben '$buf' eingegeben. \n " ; socket_write ( $msgsock , $talkback , strlen...
- PHP Manual
- [ Socket Funktionen php.net ]
- PHP Funktion
- ini_get ( phplist Code 18% Relevanz )
- Rubrik
- PHP Optionen & Informationen
- Kurzform
- ini_get -- Gets the value of a configuration option
- Vorschau
- ... ( 'post_max_size' ) . "\n" ; echo 'post_max_size+1 = ' . ( ini_get ( 'post_max_size' )+ 1 ) . "\n" ; echo 'post_max_size in bytes = ' . return_bytes ( ini_get ( 'post_max_size' )); function return_bytes ( $val ) { $val = trim ( $val ); $last = strtolower ( $val { strlen ( $val )- 1 }); switch( $last ) { // The 'G' modifier is available since PHP 5.1.0 case 'g' : $val *= 1024 ; case 'm' : $val *= 1024 ; case 'k' : $val *= 1024 ; } return $val...
- PHP Manual
- [ ini_get php.net ]
- PHP Funktion
- ucfirst ( phplist Code 18% Relevanz )
- Rubrik
- String-Funktionen
- Kurzform
- ucfirst -- Verwandelt das erste Zeichen eines Strings in einen Großbuchstaben
- Vorschau
- ...foo = ucfirst ( $foo ); // Hallo welt! $bar = 'HALLO WELT!' ; $bar = ucfirst ( $bar ); // HALLO WELT! $bar = ucfirst ( strtolower ( $bar )); // Hallo welt! ?> Siehe auch strtolower() , strtoupper() und ucwords() . trim ucwords...
- PHP Manual
- [ ucfirst php.net ]
- PHP Funktion
- XSLTProcessor->transformToDoc() ( phplist Code 15% Relevanz )
- Rubrik
- XSL functions
- Kurzform
- XSLTProcessor->transformToDoc() -- Transform to a DOMDocument
- Vorschau
- ... -> load ( 'collection.xml' ); $xsl = new DOMDocument ; $xsl -> load ( 'collection.xsl' ); // Configure the transformer $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // attach the xsl rules echo trim ( $proc -> transformToDoc ( $xml )-> firstChild -> wholeText ); ?> Das oben gezeigte Beispiel erzeugt folgendeAusgabe: Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! Siehe auch XSLTProcessor->...
- PHP Manual
- [ XSLTProcessor->transformToDoc() php.net ]
- PHP Funktion
- PHP auf der Kommandozeile ( phplist Code 14% Relevanz )
- Rubrik
- Features
- Kurzform
- -----
- Vorschau
- ...geöffneter Stream auf stdin . Das erspart das Öffnen mit <?php $stdin = fopen ( 'php://stdin' , 'r' ); ?> Wenn sie einzelne Zeilen von stdin lesen wollen, können Sie folgendes Code-Fragment benutzen: <?php $line = trim ( fgets ( STDIN )); // liest eine Zeile von STDIN fscanf ( STDIN , "%d\n" , $number ); // liest eine Zahl von STDIN ?> STDOUT Ein schon geöffneter Stream auf stdout . Das erspart das Öffnen mit <?php $stdout = fopen...
- PHP Manual
- [ PHP auf der Kommandozeile php.net ]
- PHP Funktion
- mcrypt_module_open ( phplist Code 9% Relevanz )
- Rubrik
- Mcrypt Encryption Functions
- Kurzform
- mcrypt_module_open -- Opens the module of the algorithm and the mode to be used
- Vorschau
- ...iv ); /* Decrypt encrypted string */ $decrypted = mdecrypt_generic ( $td , $encrypted ); /* Terminate decryption handle and close module */ mcrypt_generic_deinit ( $td ); mcrypt_module_close ( $td ); /* Show string */ echo trim ( $decrypted ) . "\n" ; ?> The first line in the example above will try to open the DES cipher from the default directory and the EBC mode from the directory /usr/lib/mcrypt-modes . The second example uses strings as ...
- PHP Manual
- [ mcrypt_module_open php.net ]
- PHP Funktion
- php_ini_scanned_files ( phplist Code 8% Relevanz )
- Rubrik
- PHP Optionen & Informationen
- Kurzform
- php_ini_scanned_files -- Return a list of .ini files parsed from the additional ini dir
- Vorschau
- ... example to list the returned ini files <?php if ( $filelist = php_ini_scanned_files ()) { if ( strlen ( $filelist ) > 0 ) { $files = explode ( ',' , $filelist ); foreach ( $files as $file ) { echo "<li>" . trim ( $file ) . "</li>\n" ; } } } ?> See also ini_set() and phpinfo() . memory_get_usage php_logo_guid...
- PHP Manual
- [ php_ini_scanned_files php.net ]