How to find ICCID of SIM in Android device?

How to find ICCID of SIM in Android device connected to Linux PC using command?

I have connected my Android device with SIM to my Linux PC.
I want to know ICCID of SIM in Andorid phone.

I can get the ICCID using getIccSerialNumber() when used in Android Application. But I don’t want to run Android App on a phone. Instead, I want to get the ICCID using my Linux PC only. i.e. Either by using adb command or running a C program in my PC.

How can I do it?

How to find ICCID of SIM in Android device?

read more

Split text string into $first and $last name in php

I’m developing a private message system that allows users to search for a user by their full name, e.g.: “George Washington”.

I have two variables named $firstname and $lastname, and the search function orders results by relevancy (how many times you have messaged that person). How do I get a text field to split “George Washington” into $firstname="George" and $lastname="Washington"?

Split text string into $first and $last name in php