What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-22 18:15:57
substr php
substr("testers", -1); // returns "s" Add solution -
Other 2022-01-22 12:30:03
$trim_length = $custom_field = 'field-name'
$trim_length = 100; //desired length of text to display $custom_field = 'my-custom-field-name'; $value = get_post_meta(get_the_ID(), $custom_field, true); if ($value) { $trimmed_value= rtrim(substr($value,0,$trim_length)); if (strlen($trimmed_value) &g... Add solution -
-
PHP 2021-11-22 08:34:24
ddos protection by cloudflare blocks extensions in opencart admin
/* This is an opencart issue, specifically with the annoying promotional advert that pops up above the extensions when you load them up. To fix this: 1) Go to this file: admin/controller/extension/extension/promotion.php 2) add this cod... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5