Is there anyway I can delete everything after the comma including the
comma itself? Keep in mind that everything atfer the comma is
generated dynamically!
Is there anyway I can delete everything after the comma including the
comma itself? Keep in mind that everything atfer the comma is
generated dynamically!
Read the manual on the functions stripos and substr.
Is there anyway I can delete everything after the comma including the
comma itself? Keep in mind that everything atfer the comma is
generated dynamically!
Thanks!
as Geoff said, to do that, you should use strpos and substring
an example:
$str = 'WorldWatch, Tokyo';
$positionOfTheComma = strpos($str,',');
$strWithoutTheComma = substr($str, 0, $positionOfTheComma);
On Aug 6, 12:12 am, Geoff Muldoon <geoff.muld...@trap.gmail.com>
wrote:
In article <1b01c7ba-d6e8-47fe-9af7-
b15575370...@m36g2000hse.googlegroups.com>, says...
I have a string:
"WorldWatch, Tokyo"
Is there anyway I can delete everything after the comma including the
comma itself? Keep in mind that everything atfer the comma is
generated dynamically!
Read the manual on the functions stripos and substr.
Geoff M
...or strtok, preg_match, explode....actually, read all the manual.
Hi all,
I would like deleting specific characters from a string.
As an example, I would like to delete all of the '@' '&' in the string
'You are ben@orange?enter&your&code' so that it becomes...
I am trying to use a command line program to run a stored procedure
that generates output in a comma-delimitted format. Somehow, ISQL or
OSQL always wrap the lines at 256 characters. I believe this...
is there a way to delete a block of text
i have started by looking for the speicific line of text that starts the
block by looking for teh index of it...but i cannot figure out out to remove...
I have a datagrid with checkboxes..
When a user clicks one check box and clicks the delete button it deletes
that ROw.
There another situation when a user clicks multiple rows so i had to loop...
Hello:
I have a string, "Testing_!@#$%^&*()". It may have single and double
quotations as well.
I would like to strip all chararcters others than a-z, A-Z, 0-9 and the comma.
I came across...
Hi, I've been experimenting some more with strings, I've written some
code where I want to test to see if a certain character char_a is in
the testlist string. Simple enough.
The problem is when...
Hello,
I am displaying data retrieved from a database as a httpresponse in a
webform.
I noticed that some characters such as the comma (,), display as
special characters in the
web browser...
Thanks in advance... I have a string that I'm building that needs to
write to a file the last name, first name and middle initial in this
format with a maximum of 20 characters. Two examples:
...
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...