Hoe get the dob or date birth form string in php
my string is
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----
i want get the Date of Birth : 21st July 1986 from above string
php
add a comment |
my string is
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----
i want get the Date of Birth : 21st July 1986 from above string
php
4
what you have tried so far? add your attempt in your question
– Alive to Die
Jan 2 at 10:09
1
Where does the string come from?
– B001ᛦ
Jan 2 at 10:09
There are requirements to what questions can be ask and how they should be asked. Please read a bit about that to prevent your questions from getting closed or down voted: stackoverflow.com/help/asking
– arkascha
Jan 2 at 10:12
@AlivetoDie that string from resume parsing i need get the personal details from that string thanks for your reply
– kalaivanan
Jan 2 at 10:17
You can aslo try this Solution
– Yogendrasinh
Jan 2 at 10:24
add a comment |
my string is
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----
i want get the Date of Birth : 21st July 1986 from above string
php
my string is
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----
i want get the Date of Birth : 21st July 1986 from above string
php
php
edited Jan 2 at 10:08


Alive to Die
56k83273
56k83273
asked Jan 2 at 10:07
kalaivanankalaivanan
427
427
4
what you have tried so far? add your attempt in your question
– Alive to Die
Jan 2 at 10:09
1
Where does the string come from?
– B001ᛦ
Jan 2 at 10:09
There are requirements to what questions can be ask and how they should be asked. Please read a bit about that to prevent your questions from getting closed or down voted: stackoverflow.com/help/asking
– arkascha
Jan 2 at 10:12
@AlivetoDie that string from resume parsing i need get the personal details from that string thanks for your reply
– kalaivanan
Jan 2 at 10:17
You can aslo try this Solution
– Yogendrasinh
Jan 2 at 10:24
add a comment |
4
what you have tried so far? add your attempt in your question
– Alive to Die
Jan 2 at 10:09
1
Where does the string come from?
– B001ᛦ
Jan 2 at 10:09
There are requirements to what questions can be ask and how they should be asked. Please read a bit about that to prevent your questions from getting closed or down voted: stackoverflow.com/help/asking
– arkascha
Jan 2 at 10:12
@AlivetoDie that string from resume parsing i need get the personal details from that string thanks for your reply
– kalaivanan
Jan 2 at 10:17
You can aslo try this Solution
– Yogendrasinh
Jan 2 at 10:24
4
4
what you have tried so far? add your attempt in your question
– Alive to Die
Jan 2 at 10:09
what you have tried so far? add your attempt in your question
– Alive to Die
Jan 2 at 10:09
1
1
Where does the string come from?
– B001ᛦ
Jan 2 at 10:09
Where does the string come from?
– B001ᛦ
Jan 2 at 10:09
There are requirements to what questions can be ask and how they should be asked. Please read a bit about that to prevent your questions from getting closed or down voted: stackoverflow.com/help/asking
– arkascha
Jan 2 at 10:12
There are requirements to what questions can be ask and how they should be asked. Please read a bit about that to prevent your questions from getting closed or down voted: stackoverflow.com/help/asking
– arkascha
Jan 2 at 10:12
@AlivetoDie that string from resume parsing i need get the personal details from that string thanks for your reply
– kalaivanan
Jan 2 at 10:17
@AlivetoDie that string from resume parsing i need get the personal details from that string thanks for your reply
– kalaivanan
Jan 2 at 10:17
You can aslo try this Solution
– Yogendrasinh
Jan 2 at 10:24
You can aslo try this Solution
– Yogendrasinh
Jan 2 at 10:24
add a comment |
1 Answer
1
active
oldest
votes
$str="
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----";
$date = trim(explode(".-",explode(":",$str)[4])[0]);
With your code it is giving result as21st July 1986.
With adding".-"
in your code it will gives perfect result.
– Yogendrasinh
Jan 2 at 10:22
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54004398%2fhoe-get-the-dob-or-date-birth-form-string-in-php%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$str="
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----";
$date = trim(explode(".-",explode(":",$str)[4])[0]);
With your code it is giving result as21st July 1986.
With adding".-"
in your code it will gives perfect result.
– Yogendrasinh
Jan 2 at 10:22
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
add a comment |
$str="
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----";
$date = trim(explode(".-",explode(":",$str)[4])[0]);
With your code it is giving result as21st July 1986.
With adding".-"
in your code it will gives perfect result.
– Yogendrasinh
Jan 2 at 10:22
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
add a comment |
$str="
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----";
$date = trim(explode(".-",explode(":",$str)[4])[0]);
$str="
Personal Details :-Name: ABHISHEK DAS-Sex : Male-Date of Birth : 21st July 1986.-Marital status: Married-Nationality: Indian-Languages I can speak: Hindi, English, Bengali. -Declaration:-I here by declare that all the details furnished above are true to the best of my knowledge.-Date:9th November 2017 Abhishek Das----";
$date = trim(explode(".-",explode(":",$str)[4])[0]);
edited Jan 2 at 10:30
answered Jan 2 at 10:17


CurlasCurlas
775413
775413
With your code it is giving result as21st July 1986.
With adding".-"
in your code it will gives perfect result.
– Yogendrasinh
Jan 2 at 10:22
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
add a comment |
With your code it is giving result as21st July 1986.
With adding".-"
in your code it will gives perfect result.
– Yogendrasinh
Jan 2 at 10:22
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
With your code it is giving result as
21st July 1986.
With adding ".-"
in your code it will gives perfect result.– Yogendrasinh
Jan 2 at 10:22
With your code it is giving result as
21st July 1986.
With adding ".-"
in your code it will gives perfect result.– Yogendrasinh
Jan 2 at 10:22
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
Ok, have you found it usefull?
– Curlas
Jan 2 at 10:29
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@Yogendrasinh thanks work it
– kalaivanan
Jan 2 at 10:30
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
@kalaivanan Accept this as your answer if you feel it is your result.
– Yogendrasinh
Jan 2 at 10:32
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54004398%2fhoe-get-the-dob-or-date-birth-form-string-in-php%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
what you have tried so far? add your attempt in your question
– Alive to Die
Jan 2 at 10:09
1
Where does the string come from?
– B001ᛦ
Jan 2 at 10:09
There are requirements to what questions can be ask and how they should be asked. Please read a bit about that to prevent your questions from getting closed or down voted: stackoverflow.com/help/asking
– arkascha
Jan 2 at 10:12
@AlivetoDie that string from resume parsing i need get the personal details from that string thanks for your reply
– kalaivanan
Jan 2 at 10:17
You can aslo try this Solution
– Yogendrasinh
Jan 2 at 10:24