Soluții

How to delete an entire word from a file using preg_replace() function in PHP?

preg_replace( $pattern, $replacement, $subject);
Parameters:

$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt

mango
apple
papaya
guava
apple
grapes
mango
apple

This program deletes the entire word from the file.

[mai mult...]

How to delete a specific content from a file using preg_replace() function in PHP?

preg_replace( $pattern, $replacement, $subject);
Parameters:

$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt

mango
apple
papaya
guava
apple
grapes
mango
apple

This program deletes a specific content from the file using preg_replace() function.

[mai mult...]

How to delete text from a file using preg_replace() function in PHP?

preg_replace( $pattern, $replacement, $subject);
Parameters:

$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt

mango
apple
papaya
guava
apple
grapes
mango
apple

This program removes all the strings from the given file.

[mai mult...]

Creare stick bootabil cu Ubuntu

Daca dorim sa instalam un alt sistem de operare in afara de Windows, Ubuntu este o buna alternativa deoarece are o interfata grafica intuitiva si mai ales, este gratuit. Desi exista mai multe alternative pentru a instala Ubuntu, din punctul meu de vedere, cea mai usoara modalitate este folosirea unui stick bootabil. Pentru aceasta operatiune vom folosi aplicatia Rufus, dar desigur ca puteti folosi si alte programe asemnatoare.

[mai mult...]