Soluții

Compileaza Pawn in Sublime Text 3

In acest tutorial o sa va prezint cum sa compilati Pawn (in special, pentru SA-MP). in Sublime Text 3.

Ce este Sublime Text 3?

Sublime Text 3 este un editor de text foarte personalizabil, cu o mulțime de caracteristici interesante, pe care nu le gasiti in editorul standard Pawno sau Notepad ++.

  • Puteți personaliza pe deplin editorul pentru a va simti cat mai confortabil.
  • Codul de scriere este mai rapid din cauza auto-completarii și a unei auto-corecției inteligente.
  • Codul dvs. va arăta mult mai curat, cu indentația îngrijită pe care o oferă.
  • O mulțime de comenzi rapide utile (personalizabile) pentru a scrie mai ușor codul.
  • De asemenea, funcționează pentru multe alte limbi, astfel încât poate fi folosit ca editor de text primar.
  • Este disponibil pentru Windows, OS X și Linux.
[mai mult...]

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...]