Skip to content
Advertisement

Tag: string

Decrement operator for strings bug in PHP?

There is an inconsistency in increment/decrement operator function regarding strings in -at least- my version of PHP. Here is what I mean: Is this an expected behavior? Should I file a bug report or something? Do you know of a workaround? edit: filed bug#80212 Answer Here is what I finally went with: Wouldn’t call it elegant but I’d call it

Getting most popular tags [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question Writing a query that returns like the table below. What I am trying to do is get the popularity of

How to grab the year from a string with php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have a couple of strings which look like this: $string1 = ’03 Aug 2020 00:49′ $string2 = ’15 Sep

String Splitting PHP

I am wanting to break down a string in to different parts and because of the nature of the string I cant quite get my head around how I could go about doing this or if its possible. Below is the string that I am trying to break up: I would like it like: I was thinking of dooing something

Get value by sweeping PHP string

I have the following value in a variable: $var = M000000017590; obtained from: $DATO = “P000001759000_M000000017590_MSG1TRANSACCIONEXITOSA _MSG2 CONMILLA,”; $porciones = explode(“_&…

Advertisement