Cara mengambil atau memilih string

Cara untuk mengambil atau memilih atau mencomot kalimat tertentu dari database atau text normal.
Contoh isi pada data adalah: NCABZ-2007
Dan kita ingin mengambil hanya 3 huruf mulai dari digit ke 3 sampai 3 karakter.

How to pick a complex string from MySQL.
We can pick a string from MySQL database with various style.
Example, the value from database is NCABZ-2007
And we want only view ABZ

hasilnya dari variable $new_data adalah “ABZ

Share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *