Hi, explode and strstr.


Posted on 16th Feb 2014 07:03 pm by admin

Hi, I seem to be confused about the strstr function, eg. i have a string like:
"a.b.c.d.e.f"
"a.b.c.d.e"
I always want it to split at the second "." from the end, so resulting in:
"e.f"
"d.e" respectively
etc...
Please feel free to ask me if you don't understand.
Thanks

213 Like 7 Dislike
Previous php-forum Next php-forum
Other php-forum

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

Ten Operator Syntax
Hi Guys,

I can't figure out why i am getting a parse error with this basic ten op code:

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

Cant display mysql data
Hey all,

I am learning php and my first goal is to create a simple CMS. At the moment I am st

Form submissing with PHP and JQuery/Ajax
I have searched everywhere, but cannot find a solution for this... I have worked all day trying to g

controlling/creating accounts with privileges
hi all,
i'm trying to figure out how i can create/control account with privileges, for instance a

i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");

error_reporting(E

socket makes browser hang...
I have a socket server, and I am having a problem at the moment...

A browser sends a http hea

Sum of Values in an Array
This is probably really simple... but it's been years since I've written anything, so bare with me!<

Strange php code found on my website
I got hacked and the following code was placed within my files:

Code: [Select]<?
/*

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash