![]() |
![]() |
Carter's Carter's Tonal Dot Tote - Black w/Pink Trim | ![]() |
![]() |
US $31.99 | 19d 9h 10m |
![]() |
*Belvah White Black Polka Dot Quilted Messenger Diaper Bag Laptop Book Pink Trim | ![]() |
![]() |
US $19.95 | 26d 27m |
![]() |
DIAPER BAG personalized baby tote Red with white polka dot trim monogrammed NEW | ![]() |
![]() |
US $28.99 | 9d 1h 18m |
![]() |
Floral with Polka Dots & Blue Trim Diaper Bag Gift Set | ![]() |
![]() |
US $24.99 | 5d 22h 52m |
![]() |
Floral with Polka Dots & Green Trim Diaper Bag Gift Set | ![]() |
![]() |
US $24.99 | 5d 22h 51m |
![]() |
Floral with Polka Dots & Pink Trim Diaper Bag Gift Set | ![]() |
![]() |
US $24.99 | 5d 22h 51m |
![]() |
IOIO "Dots" Hobbo-Style Diaper Bag Pink With Pink Trim And Lining | ![]() |
0 Bid | US $10.00 | 58m |
| Powered by phpBay Pro |
Dot Trim

PHP Delete last character if dot?
Hello. I have this code:
$labels = explode(",", $_POST['labels']);
foreach($labels as $val) {
$val = trim($val);
mysql_query("INSERT INTO TABLENAME (name, cat_id) VALUES ('".mysql_real_escape_string($val)."', '$cat')");
}
As you understood it user's labels function. Every label inserted separately (separated by comma).
I want to check if last character in the input form of labels is dot- so user means that this is the end of his list of labels. So how do i check in such construction the last character and if it's a dot - remove?
already tried substr...doesn't work
substr($yourstring, -1) is the last character of the string.
![]() |
![]() |
Carter's Carter's Tonal Dot Tote - Black w/Pink Trim | ![]() |
![]() |
US $31.99 | 19d 9h 10m |
![]() |
*Belvah White Black Polka Dot Quilted Messenger Diaper Bag Laptop Book Pink Trim | ![]() |
![]() |
US $19.95 | 26d 27m |
![]() |
DIAPER BAG personalized baby tote Red with white polka dot trim monogrammed NEW | ![]() |
![]() |
US $28.99 | 9d 1h 18m |
![]() |
Floral with Polka Dots & Blue Trim Diaper Bag Gift Set | ![]() |
![]() |
US $24.99 | 5d 22h 52m |
![]() |
Floral with Polka Dots & Green Trim Diaper Bag Gift Set | ![]() |
![]() |
US $24.99 | 5d 22h 51m |
![]() |
Floral with Polka Dots & Pink Trim Diaper Bag Gift Set | ![]() |
![]() |
US $24.99 | 5d 22h 51m |
![]() |
IOIO "Dots" Hobbo-Style Diaper Bag Pink With Pink Trim And Lining | ![]() |
0 Bid | US $10.00 | 58m |
| Powered by phpBay Pro |
|
|
White Silver Sequin Dot Trim Chiffon Petticoat $23.99 White Silver Sequin Dot Trim Chiffon Petticoat |
|
|
11 Duck W/Polka Dot Trim(Pack of 12) $15.63 11" Plush Duck with Polka Dot Trim. |
|
|
26 Duck W/Polka Dot Trim(Pack of 3) $77.1 Large 26" Plush Duck With Polka Dot Trim. |
|
|
Lime Dot with Turquoise Trim Pillow $49 Square baby pillow in lime dot features turquoise dot cording. Adorable accent for the Junior bedding collections or other colorful bedding and decor. Lovingly crafted in the US. |
|
|
WINE LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 WINE LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
BLACK PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 BLACK PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
BLACK LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 BLACK LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
JADE PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 JADE PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
LAVENDER PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 LAVENDER PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
OLIVE LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 OLIVE LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
JADE POLKA DOT PRINT RUFFLE TRIM TWO PIECE SWIMSUIT $37.99 JADE POLKA DOT PRINT RUFFLE TRIM TWO PIECE SWIMSUIT |
|
|
YELLOW POLKA DOT RUFFLE TRIM STRING HALTER BIKINI SWIMSUIT $37.99 YELLOW POLKA DOT RUFFLE TRIM STRING HALTER BIKINI SWIMSUIT |
|
|
TEAL LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 TEAL LIME POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
TURQUOISE PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET $19.99 TURQUOISE PINK POLKA DOT PRINT SHEER LACE TRIM INTIMATE SET |
|
|
BLACK WHITE POLKA DOT PRINT RUFFLE TRIM HALTER BIKINI SWIMSUIT $37.99 BLACK WHITE POLKA DOT PRINT RUFFLE TRIM HALTER BIKINI SWIMSUIT |
|
|
PINK WHITE POLKA DOT PRINT RUFFLE TRIM HALTER BIKINI SWIMSUIT $37.99 PINK WHITE POLKA DOT PRINT RUFFLE TRIM HALTER BIKINI SWIMSUIT |
|
|
RED LACE TRIM POLKA DOT PRINTED PUCKER BACK BIKINI SWIMSUIT $45.99 RED LACE TRIM POLKA DOT PRINTED PUCKER BACK BIKINI SWIMSUIT |
|
|
BLACK PINK POLKA DOT BABYDOLL RUFFLE TRIM THONG INTIMATES LINGERIE $37.99 BLACK PINK POLKA DOT BABYDOLL RUFFLE TRIM THONG INTIMATES LINGERIE |
|
|
MAROON FUCHSIA LACE TRIM DOT PRINT PUCKER BACK BIKINI SWIMSUIT $45.99 MAROON FUCHSIA LACE TRIM DOT PRINT PUCKER BACK BIKINI SWIMSUIT |
|
|
MAROON NUDE LACE TRIM DOT PRINT PUCKER BACK BIKINI SWIMSUIT $45.99 MAROON NUDE LACE TRIM DOT PRINT PUCKER BACK BIKINI SWIMSUIT |
![]() Baby Starters Textured Dot Blanket with Satin Trim, Pink List Price: Sale Price: $14.99 You save: $3.01 (17%) Eligible for free shipping!Availability: Usually ships in 1-2 business days |
![]() American Baby Company Minky Dot Cradle Bumper with Chocolate Trim, Celery List Price: Sale Price: $23.80 You save: $6.18 (21%) Eligible for free shipping!Availability: Usually ships in 24 hours |
![]() SwaddleDesigns Organic Ultimate Receiving Blanket - Pastel Blue Dots and Stars with Mocha Trim List Price: Sale Price: $22.48 You save: $9.52 (30%) Eligible for free shipping!Availability: Usually ships in 24 hours |
![]() American Baby Company Minky Dot Cradle Comforter with Chocolate Trim, Celery List Price: Sale Price: $19.99 You save: $9.99 (33%) Eligible for free shipping!Availability: Usually ships in 1-2 business days |
![]() American Baby Company Minky Dot Crib Bumper with Chocolate Trim, Pink Sale Price: $69.98 Eligible for free shipping!Availability: Usually ships in 24 hours |
![]() SwaddleDesigns Plush Dot Baby Lovie, Pastel Pink List Price: Sale Price: $15.95 You save: $0.05 (%) Eligible for free shipping!Availability: Usually ships in 1-2 business days |
![]() Vitamins Baby-boys Newborn Dot Satin Trim Superplush Blanket, Brown/Blue, One Size Sale Price: $30.00 Eligible for free shipping!Availability: Usually ships in 24 hours |
![]() American Baby Company Minky Dot Portable/Mini Crib Bumper with Chocolate Trim, Celery Sale Price: $39.98 Eligible for free shipping!Availability: Usually ships in 24 hours |
![]() Ambajam Set of 3 Plush Wash Cloths, Green Apple Terry/Mod Dot Trim Sale Price: $14.00 Eligible for free shipping!Availability: Usually ships in 24 hours |
![]() American Baby Company Minky Dot Crib Comforter with Chocolate Trim, Blue Sale Price: $59.98 Eligible for free shipping!Availability: Usually ships in 24 hours |
*NEW* The Grime Scene Vs Wiley (Ft. Trim Goodz Skepta Ghetts Devlin Dot Loads)
Perfect Solutions: trim, split, merge or convert videos and extract sound clips
Perfect Solutions: trim, split, merge or convert videos and extract sound clips
One of the best tutorials for multimedia processing
Find out more at http://www.web-video-player.com
Abstract:
Trim, split, merge and convert videos (in batch);
Extract audio from video clips;
Best optimize videos for portable devices
Supplementary:
Download YouTube/Google videos or movies from other websites;
Play videos of different formats;
Put videos to websites/blogs/forums and more and play online
Description:
=> Best optimize videos of different formats for Nokia series, iPod series, iPhone series, PSP, Zune, Samsung, Sony Ericsson, Motorola, Blackberry, Dopod, Creative Zen, Archos, iRiver, 3GS, Google phone (T-mobile G1) and other portable devices.
=> Convert movies, flash videos (FLV), MOV, WMV, MPEG-4, MPG, RM, RMVB, AVI, DivX, XviD, VOB, ASF, DV, 3GP, M1V, M2V into AVI, SWF, WMV, MP4, MOV, 3GP, FLV, MPG, MPEG4, MPEG and MPEG-II
=> Extract audio / music from video clips into MP3, WAV, WMA, M4A, OGG, AAC, AMR and MP2
=> Put videos to websites/blogs/forums and more and play online
What we need right here is a powerful all-in-one application – Socusoft Web Video Player. You may download this software from its official site: http://www.web-video-player.com
Socusoft Web Video Player is one of the most excellent tools for web design and multimedia processing. Let’s take a look at its notable features as below:
Features of Web Video and Player Function:
-- GUI is easy to navigate
-- Cool player templates for web videos and websites
-- Rich parameter settings for web videos and players
-- Show/Hide of video play list and playback feature
-- Extremely easy to publish web videos and embedded player
-- Convenient to get ready-made files for Dreamweaver or FrontPage
Features of Video Conversion Function:
-- Accept various input/output video formats
-- Multiple select video files for batch conversion
-- YouTube/Google video wizard download
-- Customize video and audio properties independently
-- Ready-made output video parameters for various portable devices
-- Convert videos at high speed with perfect output quality
-- Extract audio into various formats from video clips
-- Customize output video frame size
-- Merge video clips into one movie
-- Split files into smaller parts
-- Integrated video player
-- User-friendly interface
-- Easy to use.
Perfect Solutions
Open integrated converter
Launch Socusoft Web Video Player and click "Convert" on the upper right side to open the integrated converter.
Add video in batch/ Capture video from DV/Import video from Internet
Go to File -> Add Video Files. Choose the video that you need to edit. If you need to convert videos in batches, choose "Batch Add Video Files". You can also capture Video from DV by choosing "capture Video from DV" when necessary. You can even import videos from Internet from the menu options.
Edit Video (video size, video bitrate, audio bitrate and more)
The lower right window displays the settings for the selected video files. You can customize the properties of the output files here such as output duration, video size, video bitrate and audio bitrate.
You can also customize output video in "option" panel. Click the shortcut button "Option".
Or click "Edit" > "Options", and you will see the window "Options" for parameter settings.
You can adjust relative parameters such as audio parameters, video size and audio/video sync.
When you finished the above, you may click "Encode" button to output your customized videos.
Trim / split videos
If you just want the excellent part of the video, you can trim the video. Press "play" and select the beginning. Then, press "Start to trim" button. Hold the click to move the blue dot again and select the end of video and press "stop to trim" button. For more accurate conversion, you can change the number at "Start Time" and "Stop Time". After that, click "Encode" button to start to trim or split videos.
Merge video clips into one movie
Click "Add Video" to add video files. In video list area of the main window, press the Ctrl or Shift button to choose video files that that you need to merge. Then right click on them and choose Merge Output. After that, click "Encode" button to start video merge.
Tips: You can hold the click and drag the file to change the order when you need to change the merged order. If you need to cancel the merging, you can right click on the file list and choose Unmerge Output.
Download videos from YouTube/Google or other websites
Click "YouTube" button in the main window or go to File > Import Video from Internet. Then, copy the URL of the video and paste it into the form of the pop-up window. After that, double click the bar to download the video from YouTube.
Put videos to websites/blogs/forums and more and play online:
For more information about the guide, please visit the website.
Extract sound clips/music from videos/movies
Turn to the right of the main window and click the button, as shown in the screenshot below. Different audio formats such as mp3, wav, wma, m4a, ogg, aac, amr and mp2 are listed on the drop-down menu, some of which are customized. Choose the audio format that you need. After that, click "Encode" button to extract audio.
Convert videos/movies for portable devices/ PDAs/ between different formats
With the excellent tool -- Socusoft Web Video Player, you may convert movies or videos of different formats such as FLV, MOV, WMV, MPEG-4, MPG, RM, RMVB, AVI, DivX, XviD, VOB, ASF, DV, 3GP, M1V, M2V into AVI, SWF, WMV, MP4, MOV, 3GP, FLV, MPG, MPEG4, MPEG and MPEG-II so as to best optimize videos for Nokia series, iPod series, iPhone series, PSP, Zune, Samsung, Sony Ericsson, Motorola, Blackberry, Dopod, Creative Zen, Archos, iRiver, 3GS, Google phone (T-mobile G1), other PDAs and portable devices.
Choose the output video format for your portable devices such as Nokia, iPod, iPhone, iPod touch, PSP, Zune, Samsung, Sony Ericsson, Motorola, Blackberry, Dopod, Creative Zen, Archos, iRiver and other PDAs. Turn to the bottom right of the main window and click the button. There are a lot of video formats listed on the drop-down menu, some of which are customized. Right here, take Nokia as an example. Choose "Nokia" and you will see some of the popular Nokia models listed such as N95, N93, N73, N75, E62, 5300, 6555, 6085 and 6126. Check your mobile phone model and choose it. If your model is not listed there, don’t worry. You can select "Nokia 3GP series Video" or "Nokia MPEG-4 series Video". You can also customize the video you want such as video size, video bitrate and audio bitrate.
Click "Encode" to start video conversion. As for the conversion speed, it can be very high. Sometimes, it may be lower, depending on your computer and the size of the file.
When completed, click "Folder" to get the converted video.
Now, get the data wire and transfer the converted movie to your mobile phone or other portable devices and enjoy it any time.
About the Author











Eligible for free shipping!








