What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-28 21:11:10
string slice php
<?php echo substr('abcdef', 1); // bcdef echo substr('abcdef', 1, 3); // bcd echo substr('abcdef', 0, 4); // abcd echo substr('abcdef', ... Add solution -
C++ 2021-10-12 16:33:10
find nth word in sentence c++
#include <iostream> #include <string> #include <vector> using namespace std; void splitString(const string &str, vector<string> &output) { string::size_type start = 0; // Where to start string::size_type last = st... Add solution -
PHP 2021-09-21 09:07:02
print only some characters of a string in php
<?php echo substr('abcdef', 1); // bcdef echo substr('abcdef', 1, 3); // bcd echo substr('abcdef', 0, 4); // abcd echo substr('abcdef', ... Add solution -
Shell/Bash 2021-08-30 08:49:01
awk how to print line minus end characters
# Basic syntax: awk '{print substr($0, 1, length($0)-#_characters)}' input_file # Where #_characters is the number of characters you want to remove # Example usage: # Say your input_file has the line: Id rather not end this line with garbage garbage awk... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5