Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Muhammad Danial
index_projeckt_php
Commits
a3058508
Commit
a3058508
authored
4 years ago
by
Danial Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
index
parent
e77c3d08
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
3 deletions
+54
-3
Index_projeckt_php/Index.php
Index_projeckt_php/Index.php
+53
-2
Index_projeckt_php/nbproject/project.xml
Index_projeckt_php/nbproject/project.xml
+1
-1
No files found.
Index_projeckt_php/Index.php
View file @
a3058508
...
...
@@ -320,9 +320,9 @@
$slovaDanialMuhammad
=
array
(
'hledat'
,
'měď'
,
'zlato'
);
echo
isVali
d
DanialMuhammad
(
$zpravaDanialMuhammad
,
$slovaDanialMuhammad
);
echo
isValiDanialMuhammad
(
$zpravaDanialMuhammad
,
$slovaDanialMuhammad
);
function
isVali
d
DanialMuhammad
(
string
$zpravaDanialMuhammad
,
array
$slovaDanialMuhammad
):
string
{
function
isValiDanialMuhammad
(
string
$zpravaDanialMuhammad
,
array
$slovaDanialMuhammad
):
string
{
foreach
(
$slovaDanialMuhammad
as
$value2
)
{
...
...
@@ -332,6 +332,57 @@
}
return
"Zadne slovo nebylo nalezeno!"
;
}
// Funkce
$teststringaDanialMuhammad
=
"Ahoj jak se mas"
;
$teststringbDanialMuhammad
=
array
(
"Ahoj"
,
"jak"
,
"se"
,
"mas"
);
$teststringcDanialMuhammad
=
"jak se mas"
;
$teststringdDanialMuhammad
=
"Ahoj jak se Mas"
;
$teststringeDanialMuhammad
=
"ahoj jak se mas"
;
echo
(
"<br><br>"
.
addslashes
(
"Slovo 'text' je v lomítku.."
)
.
"<br><br>"
);
echo
chr
(
69
)
.
"<br><br>"
;
print_r
(
explode
(
" "
,
$teststringaDanialMuhammad
));
echo
"<br><br>"
;
echo
implode
(
" "
,
$teststringbDanialMuhammad
);
echo
"<br><br>"
;
echo
join
(
" "
,
$teststringbDanialMuhammad
);
echo
"<br><br>"
;
echo
md5
(
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
hash
(
"sha256"
,
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
ord
(
"G"
);
echo
"<br><br>"
;
echo
strchr
(
$teststringaDanialMuhammad
,
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
strlen
(
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
strpos
(
$teststringaDanialMuhammad
,
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
strrchr
(
$teststringaDanialMuhammad
,
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
strrev
(
$teststringaDanialMuhammad
);
echo
"<br><br>"
;
echo
strstr
(
$teststringaDanialMuhammad
,
$teststringcDanialMuhammad
);
echo
"<br><br>"
;
echo
ucfirst
(
$teststringdDanialMuhammad
);
echo
"<br><br>"
;
echo
strtoupper
(
$teststringeDanialMuhammad
);
echo
"<br><br>"
;
echo
substr_replace
(
$teststringaDanialMuhammad
,
$teststringcDanialMuhammad
,
0
);
echo
"<br><br>"
;
echo
substr
(
$teststringaDanialMuhammad
,
5
);
echo
"<br><br>"
;
echo
strtolower
(
$teststringdDanialMuhammad
);
echo
"<br><br>"
;
echo
ucwords
(
$teststringdDanialMuhammad
);
echo
"<br><br>"
;
?>
...
...
This diff is collapsed.
Click to expand it.
Index_projeckt_php/nbproject/project.xml
View file @
a3058508
...
...
@@ -3,7 +3,7 @@
<type>
org.netbeans.modules.php.project
</type>
<configuration>
<data
xmlns=
"http://www.netbeans.org/ns/php-project/1"
>
<name>
i
ndex_projeckt_php
</name>
<name>
I
ndex_projeckt_php
</name>
</data>
</configuration>
</project>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment