Jump to content

Messing about with strings in PHP, need help

Alex(PlayMedium)

Ok, I'll keep it simple, I am having trouble with something I have to do in php. Here is the situation:

I get two strings, like this:

"Linus"; "Sebastian"

And then I want to get a shot version of that as a string like this:

"LinSeb"

So, the first three letters form the first string and then the first three letters from the second string into a new string.

Can you guys help me with this please?

AMD FX8320 @3.5ghz |  Gigabyte 990FXA-UD3  |  Corsair Vengeance 8gb 1600mhz  |  Hyper 412s  |  Gigabyte windforceR9 290  |  BeQuiet! 630w  |  Asus Xonar DGX  |  CoolerMast HAF 912+  |  Samsung 840 120gb


2 WD red 1tb RAID0  |  WD green 2tb(external, backup)  |  Asus VG278He  |  LG Flatron E2240  |  CMstorm Quickfire TK MXbrown  |  Sharkoon Fireglider  |  Audio Technica ATH700X


#KILLEDMYWIFE

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks guys, really helped me out, thanks :)

AMD FX8320 @3.5ghz |  Gigabyte 990FXA-UD3  |  Corsair Vengeance 8gb 1600mhz  |  Hyper 412s  |  Gigabyte windforceR9 290  |  BeQuiet! 630w  |  Asus Xonar DGX  |  CoolerMast HAF 912+  |  Samsung 840 120gb


2 WD red 1tb RAID0  |  WD green 2tb(external, backup)  |  Asus VG278He  |  LG Flatron E2240  |  CMstorm Quickfire TK MXbrown  |  Sharkoon Fireglider  |  Audio Technica ATH700X


#KILLEDMYWIFE

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×