Main Menu




browser lang:en

Users Area

Client Login

today cache size is:223155

 

Holyguard rss
rss 2.0 for all sections

 

Portfolio

Some of my projects:
CTIBA
MA-NO Web Agency
BluPool
L'Pratone
Travel in Hotel
Yacht Elements
AbruzzoWeb
Il Mastino
CSI Teramo
Innovazione S.p.a.




Commenti

Aiuto
04/09/2010 by ProgXalpha

19/08/2010 by
ciao jackall
17/07/2010 by marco
aiuto
17/07/2010 by marco
RE: Domanda
08/05/2010 by holyguard
Domanda
05/05/2010 by pryons
Ringraziamento
15/04/2010 by Yuriy, webmaster
edu
12/04/2010 by eduala@libero.it

Leggi tutto »


RAPIDQ

Rapid-Q:The lost files
My old library where i have collected all the rapidq scripts and italian help


Today my pagerank is: Free Page Rank Tool

PHP - Funzioni di ricerca del testo, prima di - dopo di - compreso in

Una pratica libreria di funzioni PHP che servono ad identificare un particolare testo nelle stringhe e di conseguenza ad operare su di esso

after ('@', 'boris@holyguard.net');
ritorna 'holyguard.net'
dalla prima occorrenza di '@'

before ('@', 'boris@holyguard.net');
ritorna 'boris'
dalla prima occorrenza di of '@'

between ('@', '.', 'boris@holyguard.net');
ritorna 'holyguard'
dalla prima occorrenza di '@'

after_last ('[', 'sin[90]*cos[180]');
ritorna '180]'
dalla ultima occorrenza di '['

before_last ('[', 'sin[90]*cos[180]');
ritorna 'sin[90]*cos['
dalla ultima occorrenza di '['

between_last ('[', ']', 'sin[90]*cos[180]');
ritorna '180'
dalla ultima occorrenza di '['



function after ($this, $inthat)
{
if (!is_bool(strpos($inthat, $this)))
return substr($inthat, strpos($inthat,$this)+strlen($this));
};

function after_last ($this, $inthat)
{
if (!is_bool(strrevpos($inthat, $this)))
return substr($inthat, strrevpos($inthat, $this)+strlen($this));
};

function before ($this, $inthat)
{
return substr($inthat, 0, strpos($inthat, $this));
};

function before_last ($this, $inthat)
{''
return substr($inthat, 0, strrevpos($inthat, $this));
};

function between ($this, $that, $inthat)
{
return before($that, after($this, $inthat));
};

function between_last ($this, $that, $inthat)
{
return after_last($this, before_last($that, $inthat));
};

//posizione stringa al contrario
function strrevpos($instr, $needle)
{
    $rev_pos = strpos (strrev($instr), strrev($needle));
    if ($rev_pos===false) return false;
    else return strlen($instr) - $rev_pos - strlen($needle);
};

//multiple ricerche delle stringhe comprese
function multi_between($this, $that, $inthat)
{
$counter = 0;
    while ($inthat)
    {
        $counter++;
        $elements[$counter] = before($that, $inthat);
        $elements[$counter] = after($this, $elements[$counter]);
        $inthat = after($that, $inthat);
    }
	return $elements;
}

Rating:
62.0
13 votes
1 2 3 4 5

Commenti

strevpos é una funzione creata al momento by holy

19/01/2010 
in questo caso strrevpos é una funzione creata da noi in questo script, questa funzione non é presente nelle funzioni di base di PHP


strrevpos esiste? by mario

19/01/2010 
questa funzione "strrevpos " credo sia obsoleta o sbaglio?
quindi al posto di questa?
grazie mille...


Inserisci un commento

Titolo
Messaggio
Nome Utente
e-mail (se vuoi ricevere le risposte a questo post anche via mail)

Videos


Contenuti

Search Engine Optimization - 130 parametri usati da google per valutare il tuo sito

26/08/2010 

Con l'avvento di caffeine molti webmaster si sono trovati a dover rivedere tutte le strategie SEO per i…

in:Scripts e tutorials (0 commenti)

test

19/08/2010 

test

in:PHP Scripts (0 commenti)

Artweaver

28/05/2010 

Artweaver è un programma di disegno dotato di un'infinità di pennelli con cui sperimentare nuove tecniche grafiche.…

in:Software Open Source (0 commenti)

Configurare Domini e Sottodomini con BIND + Postfix

23/03/2010 

Con Bind, la configurazione di domini e sottodomini è abbastanza semplice....l'elemento più importante è il cosidetto zone-file, che…

in:Apache (0 commenti)

hkit - classi in php per il parsing dei microformats

05/03/2010 

hkit é un tool, o meglio, una classe in PHP5 per la estrazione dei piú comuni microformati.  La pagina…

in:PHP Scripts (0 commenti)

Certificati Java

01/03/2010 

Dopo circa un anno ho ritirato i certificati che attestano i miei corsi di Java...purtroppo manca il terzo…

in:Blog (3 commenti)

SVNWeaver, integrare subeversion in Dreamweaver

19/02/2010 

SVNWeaver é una estensione per Dreamweaver che permette di integrare il TortoiseSVN nei menú del Dreamweaver. Devo dire…

in:Applicazioni di sviluppo web (0 commenti)

Inserisci Google BUZZ nel tuo sito con Google Buzz Widget Jquery Plugin

15/02/2010 

Questo è un widget di jQuery per il nuovo social network di Google-Buzz-che è possibile incorporare ovunque per…

in:Scripts e tutorials (0 commenti)

Leggi tutto »


Tag Clouds


Search Engine Optimization parametri usati google valutare sitotestArtweaverConfigurare Domini Sottodomini BIND Postfixhkit classi parsing microformatsCertificati JavaSVNWeaver integrare subeversion DreamweaverInserisci Google BUZZ sito Google Buzz Widget Jquery Plugin


Add to Technorati Favorites