Remember
Register
Search With
Seek4Info.com
Programming & Software Q&A | CollectiveSolver
Questions
Tags
Users
Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.
Contact: aviboots(AT)netvision.net.il
Most popular tags
python
java
c
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
r
css
bootstrap
win32
groovy
winapi
sql
mysql
vbnet
jquery
pascal-string
lua
winforms
kotlin-string
bash
c-string
swift-string
cpp-string
go-string
c#-string
php-string
java-string
vbnet-string
cobol
rust-string
python-string
cpp-vector
f#
opengl
scala-string
javascript-string
pascal-array
swift-array
typescript-string
c-array
php-array
javascript-array
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
c-matrix
cpp-array
c#-list
vbnet-list
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
sdl3
angularjs
binary-search-algorithm
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
exabyte-constant
petabyte-constant
terabyte-constant
math-functions-constants
dot-product-two-arrays
string-to-title-case
create-infinite-loop
rust-matrix
go-matrix
javascript-matrix
raylib
Disclosure:
My content contains affiliate links.
Recent questions tagged php-string
41,213
questions
53,714
answers
573
users
Recent questions tagged php-string
1
answer
40
views
How to get the word before the last word from a string (edge‑case‑safe) in PHP
asked
Mar 28
by
avibootz
php
php-string
php-get-word-before-last-string-edge-case-safe
get-word-before-last-string-edge-case-safe
1
answer
43
views
How to find the longest word in a string with PHP
asked
Mar 3
by
avibootz
php
php-string
php-longest-word-in-string
longest-word-in-string
1
answer
85
views
How to get all the substrings with exactly k distinct characters from a given string in PHP
asked
Nov 14, 2025
by
avibootz
php
php-substring
php-string
substrings-with-k-distinct-characters
1
answer
78
views
How to count words in a string with punctuation in PHP
asked
Nov 2, 2025
by
avibootz
php
php-string
2
answers
109
views
How to check whether a string can be segmented into a sequence of words from a dictionary in PHP
asked
Sep 28, 2025
by
avibootz
php
php-string
1
answer
88
views
How to reverse a word in a string with PHP
asked
Sep 26, 2025
by
avibootz
php
php-string
php-reverse
1
answer
83
views
How to reverse each word in a string with PHP
asked
Sep 24, 2025
by
avibootz
php
php-string
php-reverse
1
answer
76
views
How to check if two given words are present in a string in PHP
asked
Sep 12, 2025
by
avibootz
php
php-string
1
answer
83
views
How to extract a float from a string in PHP
asked
Jul 29, 2025
by
avibootz
php
php-string
php-extract
1
answer
97
views
How to create a string with a repeated character N times in PHP
asked
Jul 28, 2025
by
avibootz
php
php-string
1
answer
103
views
How to split a string with multiple separators in PHP
asked
Jul 21, 2025
by
avibootz
php
php-string
1
answer
89
views
How to convert binary string to integer in PHP
asked
Jul 18, 2025
by
avibootz
php
php-string
php-binary
1
answer
95
views
How to check if a string includes $sometext$ without numbers in PHP
asked
Jul 11, 2025
by
avibootz
php
php-string
3
answers
164
views
How to remove the letters from word1 if they do not exist in word2 with PHP
asked
Jul 10, 2025
by
avibootz
php
php-string
1
answer
84
views
How to remove the letters from word1 if they exist in word2 with PHP
asked
Jul 9, 2025
by
avibootz
php
php-string
1
answer
114
views
How to get intersection of two strings in PHP
asked
Jul 6, 2025
by
avibootz
php
php-string
php-intersection
1
answer
96
views
How to pad a string on both sides in PHP
asked
Jul 6, 2025
by
avibootz
php
php-string
1
answer
84
views
How to pad a string on the left in PHP
asked
Jul 4, 2025
by
avibootz
php
php-string
1
answer
114
views
How to convert a string with either, or . as decimal/thousand separators into a float in PHP
asked
Jun 27, 2025
by
avibootz
php
php-string
php-convert
1
answer
91
views
How to remove string trailing path separator in PHP
asked
Jun 16, 2025
by
avibootz
php
php-string
1
answer
93
views
How to remove the trailing slashes from a string in PHP
asked
Jun 14, 2025
by
avibootz
php
php-string
1
answer
104
views
How to remove all non-ASCII characters from a string in PHP
asked
Jun 13, 2025
by
avibootz
php
php-string
php-ascii
1
answer
102
views
How to check if a string is blank (empty, null, or contains only whitespace) in PHP
asked
Jun 7, 2025
by
avibootz
php
php-string
1
answer
225
views
How to move the digits of a string with digits and letters to the beginning of the string in PHP
asked
May 27, 2025
by
avibootz
php
php-string
1
answer
180
views
How to sort a string with digits and letters (digits before letters) in PHP
asked
May 27, 2025
by
avibootz
php
php-sort
php-string
1
answer
179
views
How to sort a string with digits and letters (letters before digits) in PHP
asked
May 26, 2025
by
avibootz
php
php-string
php-sort
3
answers
289
views
How to combine a string with a dynamic double-quoted substring in PHP
asked
May 12, 2025
by
avibootz
php
php-string
php-substring
1
answer
185
views
How to find all double quote substrings in a string with PHP
asked
May 12, 2025
by
avibootz
php
php-string
php-substring
php-regex
1
answer
175
views
How to declare a string with double quote substrings in PHP
asked
May 12, 2025
by
avibootz
php
php-string
php-substring
1
answer
120
views
How to remove a random word from a string in PHP
asked
May 5, 2025
by
avibootz
php
php-string
1
answer
197
views
How to convert a URL inside a string to a hyperlink in PHP
asked
May 2, 2025
by
avibootz
php
php-string
1
answer
181
views
How to get N characters from the middle of a string in PHP
asked
Apr 20, 2025
by
avibootz
php
php-string
3
answers
228
views
How to validate a string in PHP
asked
Apr 13, 2025
by
avibootz
php
php-string
php-regex
1
answer
209
views
How to replace multiple spaces in a string with a single space between words in PHP
asked
Apr 4, 2025
by
avibootz
php
php-string
php-regex
2
answers
126
views
How to check if a string starts with a substring from an array of substrings in PHP
asked
Apr 3, 2025
by
avibootz
php
php-string
1
answer
142
views
How to split a string into chunks of two characters each in PHP
asked
Mar 30, 2025
by
avibootz
php
php-string
1
answer
123
views
How to match words in a string that are wrapped in curly brackets using RegEx with PHP
asked
Mar 17, 2025
by
avibootz
php
php-string
1
answer
136
views
How to remove all occurrences of word from a string in PHP
asked
Oct 13, 2024
by
avibootz
php
php-string
1
answer
156
views
How to remove N characters from the middle of a string in PHP
asked
Sep 11, 2024
by
avibootz
php
php-string
1
answer
152
views
How to sum two binary strings in PHP
asked
May 7, 2024
by
avibootz
php
php-string
1
answer
214
views
How to get the length of the last word in a string with PHP
asked
May 4, 2024
by
avibootz
php
php-string
2
answers
151
views
How to remove a given word from a string in PHP
asked
Nov 19, 2022
by
avibootz
php
php-string
php-remove
1
answer
356
views
How to count the number of words in a string with PHP
asked
Aug 14, 2021
by
avibootz
php
php-string
1
answer
253
views
How to find the longest common string prefix in array of strings in PHP
asked
Mar 4, 2021
by
avibootz
php
php-string
3
answers
257
views
How to remove the last word from a string in PHP
asked
Nov 27, 2020
by
avibootz
php
php-string
php-remove-last-word-string
remove-last-word-string
1
answer
265
views
How to remove stop words from a string in PHP
asked
Oct 13, 2020
by
avibootz
php
php-string
5
answers
347
views
How to get the last word from a string in PHP
asked
Sep 6, 2019
by
avibootz
php
php-string
php-get-last-word-string
get-last-word-string
1
answer
265
views
How to find the first non-repeated character in a string with PHP
asked
Feb 26, 2019
by
avibootz
php
php-string
2
answers
273
views
How to remove (delete) specific word from a string in PHP
asked
Nov 17, 2017
by
avibootz
php
php-string
php-remove
2
answers
374
views
How to remove duplicate words from a string in PHP
asked
Nov 16, 2017
by
avibootz
php
php-string
php-remove
php-duplicate
To see more, click for the
full list of questions
or
popular tags
.
...